homepage Welcome to WebmasterWorld Guest from 54.197.111.87
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
OnMouseOver Image change and Hyperlink in PHP?
Is there an equivalent or am I stuck to Javascript?
TheLynxEffect




msg:1310238
 7:13 am on Nov 3, 2001 (gmt 0)

Good morning guys and gals! (It's 7am - someone remind me why I'm up again! Please),

What I'm after today is somewhat easier than my Top 5 table from a while back (which I still haven't finished, but don't worry I haven't forgot about it, I'm just rethinking how I'm going to use it!).

What I need is a script (ideally in PHP if this is possible) which lets me do 3 things:

1) Preload images for a menu
2) Preload onMouseOver images for that same menu and...
3) Give each of these images a hyperlink

I was thinking along the line of using 1 function for all three, but i don't know where to start....

function menu(ImageOff, ImageOn, URL);

Any ideas if this onMouseOver is possible in PSP or am I stuck in Javascript. Currently I'm using dreamweaver's (Boo, Hiss, I hear you cry) menu creater script, which is performing it's job but it's quite ugly! I'd rather have an easier to use script.

Anyone?

All help appreciated as always,

Thanks

Rich

 

sugarkane




msg:1310239
 11:22 am on Nov 5, 2001 (gmt 0)

You can only do rollovers client-side (ie Javascript). You could, of course, use PHP to generate the JS code to be sent to the browser, but it's another layer of complexity that might be best avoided unless you've a good reason to do it.

Writing a function that takes the image names etc as parameters and spits out the correct JS could be a timesaver, though...

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved