jonw118 Posted January 27, 2009 Share Posted January 27, 2009 I'm hoping someone would be kind enough to help me here. First I want to know if I can accomplish this. If so, I am by no means asking you to write my code, but if you could steer me the direction, or give me some pointers I'd really appreciate! Basically I have a script the shows multiple results on the page pulled from the database. The code for the link: <a href="full_desc.php?id=<? echo $row['id'];?>"><? echo $row['subject'];?></a> Then, for each link displayed it has a photo that displays: <? if(!empty($row['thumb'])){?> <img src="admin/<? echo $row['thumb']?>" width="120" height="60" border="1"> <? }?> Now what I want to do is have one main image, so that when you rollover a link that is populated it changes the photo (associated with that link) in the one main image. I'd really, really appreciate any help at all! Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/142667-php-javascript-to-create-a-rollover-image-from-multiple-links/ Share on other sites More sharing options...
MadTechie Posted January 27, 2009 Share Posted January 27, 2009 Okay this really is more of a HTML/CSS question from the code you have posted you could be able to get this to work, with a little help on the html side.. so here and an example <A HREF="pages.html" ONMOUSEOVER='rollover.src="overtop.gif"' ONMOUSEOUT='rollover.src="thumb.gif" '> <IMG SRC="thumb.gif" NAME="rollover" border="0"> </A> Quote Link to comment https://forums.phpfreaks.com/topic/142667-php-javascript-to-create-a-rollover-image-from-multiple-links/#findComment-747850 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.