Jump to content

javascript rollovers in php


pomme

Recommended Posts

Hi all,

I am a bit of a php newbie but really would appreciate some help - please!

I am making a site using Dreamweaver. I have set up my php includes and wanted the menu includes to have image rollovers made with javascript. Dreamweaver spat out the javascript but it doesn't work really.

I thought ahead and figured I'd have to put the javascript in a separate file and reference it, so I cut and pasted the DW generated script in there - only works on 4 out of 8 rollovers. Honestly I don't know javascript, only use what DW makes.

Do I have the basic idea right? Can anyone help please? I will email a link to the site to anyone who's interested.

Thanks so much!
Pomme
Link to comment
https://forums.phpfreaks.com/topic/6747-javascript-rollovers-in-php/
Share on other sites

Hey thanks for replying - I already had <script language="JavaScript" src="rollover.js"> and that didn't work - same for yours. Only 4 out of 7 rollovers work... :(

It would be the same script if I used it for any image rollover, right? And the code above would go in the include, or anywhere the rollover's supposed to be? I have 3 rollovers on the home page that aren't in an include.

So confused... *sigh*

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.