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
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*
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.