pomme Posted April 6, 2006 Share Posted April 6, 2006 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 More sharing options...
wildteen88 Posted April 6, 2006 Share Posted April 6, 2006 Put all your javascript into a sperate rollover.js file then use this code:<script type="text/javascript" src="rollover.js"></script> and place that between the two <head> and </head> tags. Link to comment https://forums.phpfreaks.com/topic/6747-javascript-rollovers-in-php/#findComment-24543 Share on other sites More sharing options...
pomme Posted April 6, 2006 Author Share Posted April 6, 2006 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* Link to comment https://forums.phpfreaks.com/topic/6747-javascript-rollovers-in-php/#findComment-24548 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.