PDA

View Full Version : Mouseovers


mikedippel
01-15-2006, 05:54 AM
Has anyone successfully implemented image mouseovers into thier sites?

I am currently attempting to design a site ( http://directorylist.info/ ) The template uses mouseovers. The home page shows up as it should with the images changing when the mouse hovers the image. But I cannot figure out how to get this to work using the smarty template system.

If someone could help me, I would really appreciate it. Do I place the image mouseover code in the header.tpl file and if so, how do I make it work so that it doesn't error out? I tried placing the code in the main.css file but it didin't work.

Thanks in advance.

Neticus
01-18-2006, 11:11 PM
Content visible to registered users only.

Hey im not a coder but I know mouseovers is a javascript and ive placed javascript in my template files before. You have to wrap {literal} tags around the code.

{literal}
Code
{/literal}

This will stop 'whatever' trying to parse the code. Hope this helps some.

- Neticus

mikedippel
01-19-2006, 12:41 AM
Thanks. I already tried that, but it didn't work for me. Possible the code is somewhat faulty to begin with, because it shows an error on my home page which is not done in php.

I also thought about doing a separate .tpl file to include the code, but cannot figure out how to add the code to the meta tag section. Would that work?

Neticus
01-19-2006, 01:16 PM
Content visible to registered users only.
I really couldn't say, you could try the separate tpl. insertion, Im not quite sure about your refference to the 'meta tag section'. :?