Page 1 of 1

rollover image works only from /pages/foo.html not index.php

Posted: Thu Jun 29, 2006 12:51 am
by neostar
I have a problem with some rollover images on a website.

The rollover works fine when it is a page with /pages/foo.html but any URL that has index.php in it breaks the rollover.

broken:
http://twilight-band.de/index.php
http://twilight-band.de/index.php?/gallery2.html

working:
http://twilight-band.de/pages/band.html
http://twilight-band.de/pages/biography.html

I'm not quite sure how to isolate this problem. I think it must have something to do with the mod_rewrite command, but I couldn't figure it out myself.

Thanks for your help

Re: rollover image works only from /pages/foo.html not index

Posted: Thu Jun 29, 2006 11:11 am
by garvinhicking
Hi!

We fixed this in a small ICQ session; just to let others know: It was a index.tpl template issue where the javascript was not put in the <body> tag. :)

Best regards,
Garvin

Posted: Thu Jun 29, 2006 11:14 am
by neostar
Here is the piece of code we fixed, I was just too tired to see that.

Old:

Code: Select all

{if $staticpage_pagetitle} 
<body id="{$staticpage_pagetitle}" onload="preloadImages();"> 
{else} 
<body id="Weblog"> 
{/if} 
New:

Code: Select all

{if $staticpage_pagetitle} 
<body id="{$staticpage_pagetitle}" onload="preloadImages();"> 
{else} 
<body id="Weblog" onload="preloadImages();"> 
{/if}