Hot Effects Rotator Loading Problem

More
12 years 10 months ago #7984 by nathan@xacommerce.com

nathan@xacommerce.com wrote: And what's the easiest way to edit the header/body tags in Joomla?


I'm still not sure how to edit these using Joomla... could you please advise?

Thanks.

Please Log in to join the conversation.

More
12 years 10 months ago #7990 by ivan.milic
Hi,

open the file as I told you , or you can also use text editor and open index.php that is located in template folder (same thing)

find this:

</head>

put this just above it:

<script type="text/javascript">
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
</script>

find body tag
<body...

modify it to look like this:

<body onload="MM_preloadImages(' www.yoursite.com/images/imagename.jpg','...mages/imagename2.jpg ')">

replace www.yoursite.com with your site url.

Save.

Please Log in to join the conversation.

More
12 years 10 months ago #8005 by nathan@xacommerce.com
Ivan,

When I open index.php under my current template, there is no </head> or <body> tag.

This is the reason I wasn't sure how to do this. Are these tags created dynamically within Joomla?

I sincerely appreciate your assistance.

Please Log in to join the conversation.

More
12 years 10 months ago #8015 by ivan.milic
You could then ask your template creator where you could change body tag and add script.

Please Log in to join the conversation.

More
12 years 9 months ago #8808 by stevenjonesonline@gmail.com
Hi there... did this work?

Please Log in to join the conversation.

More
12 years 9 months ago #8812 by stevenjonesonline@gmail.com
Hi there.

This doesn't work for me bit.ly/m36qd9

...I think I've done everything as you've instructed.. ?

Please Log in to join the conversation.

Time to create page: 0.180 seconds
Powered by Kunena Forum