Forums

ASP

This topic is locked

Rollover image swapping

Posted 31 Jan 2006 21:35:38
1
has voted
31 Jan 2006 21:35:38 Becky Pendall posted:
I'm displaying several thumbnails and a main picture successfully by drawing the link from my Access database. I want to be able to simply rollover a thumbnail (Thumbnail_1) and the main picture (bigpic) will be swapped to it. I'm treating it as if it were a normal rollover and have adapted it into the asp code but this is unsuccessful.

Can anyone advise me with any appropriate code please, as its a crucial part of the site I'm designing.

Replies

Replied 31 Jan 2006 22:37:35
31 Jan 2006 22:37:35 Mike Mitchell replied:
Do you have both the thumbnail and bigpic links in the database? If so, are you doing the rollover in ASP (VB Script) or Javascript?

I think you may need to post a code snippet here for us to be able to help you.

Replied 01 Feb 2006 16:38:41
01 Feb 2006 16:38:41 Becky Pendall replied:
<pre id=code><font face=courier size=2 id=code>response.write("&lt;a onmouseover='MM_swapImage('bigpic','','" & rs.fields("Picture1" & "',0)' href='#'&gt;&lt;IMG Name='thumb1' alt='Thumbnail_1' id='Thumbnail_1' SRC='" & rs.fields("Picture1" & "' Width='100' Border='1'&gt;&lt;/a&gt; " </font id=code></pre id=code>

I already have some normal rollovers on the page thus have pre-defined javascrpit functions courtesy of Dreamweaver. Any help would be must appreciated.

Reply to this topic