Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Hot Designation Joomla module

Topic-icon font style in module "advert"

More
5 years 4 months ago #10964 by novisub
Hey,
I installed hot_destinations and inserted the module "advert" in my page (developing).
in this advert i inserted via "wrapper" a iframe-offer, but this offer is shown in font style "times new roman".
Can anybody let me know how to change this font style?

By the way.
Klicking on the shown link brought from this iframe should be shown in the "inset" of the template. How do I work this?

Thanks so much for Your help

Bye

Please Log in to join the conversation.

More
5 years 4 months ago #10968 by ivan.milic
You can only alter content of iframe in two ways, first by changing source page for iframe if you have access, and second by using javascript:

jQuery('IFRAME').contents().find('*').css({fontFamily:'...'});

Hooking that click event can also be done using jQuery

jQuery('IFRAME').contents().find('#link_id').click(function(){
///
// ...
// add code to display content
// ...
///
});

Please Log in to join the conversation.

More
5 years 4 months ago #10973 by novisub
hey ivan
thanks f your answer. sounds rather complicated for me as i´m an absolute newbe with joomla.
what i want to realise (maybe there is a much easier way)
i want to show a extern text/picture, bedded in module "advert"
this extern code can be implemented in 2 ways:
a)include
comfort31.traffics-ibe.com/interface/ang...tpl&hmi=ALLE&dsi=PMI

b)javascript
comfort.traffics-ibe.com/interface/angeb...otel.js&hmi=&dsi=PMI

i want to edit the fontfamily and also, that this is shown "align" in the module "advert".

At the moment i usw the wrapper to show this result, but as in my first topic i can´t change font and position.
have you got an easy idea for me, please

thanks so much

Please Log in to join the conversation.

More
5 years 4 months ago #10976 by novisub
sorry, i forgot an example.
www.reisenet.de/html/joomla17/

by clicking in "advert" on the link, the result should be shonw in "inset"

Thank You
Bye

Please Log in to join the conversation.

More
5 years 4 months ago #10983 by ivan.milic
You still need some javascript to change content of inset when user clicks image. That two links you would use in click handler to get content for it.

1. Put :

<div id="pnlDestDesc">
</div>

in in custom HTML module with inset postion

2. In module where your images are shown in IMG tag add event handler like this:

<img onclick="getContent('<link from way b)>');return false;" ...

or if you can not have option to alter that HTML use link attribute like this:
javascript::getContent('<link from way b)>');

3. You need to define js function getContent
add this in head section of index.php of template just above </head>

<script type="text/javascript">
function getContent(link){
jQuery.get(link,function(data){
jQuery('#pnlDestDesc').html(data);
});
}
</script>


For changing font in css you can use:

.inset_pad *{
font-family:Tahoma;
font-size:12px;
}


add this at the end of template_css.css.(Values are put are random , and you should change them as you like)

Please Log in to join the conversation.

Time to create page: 0.120 seconds

Links, Partners and Social Media