Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rollover pictures in ASP pages...

Status
Not open for further replies.

Chipsman

Programmer
May 26, 2005
44
GB
Hi,

I am creating a rollover picture of a downloading button. When you over the mouse on it, a picture version of the button "pressed" is supposed to appear.

That button has a link pointing on a path in a database.

The other rollover pictures on the ASP page work fine but the download buttons don't.

Any idea guys?

Thank you, here is the code to help:

========================================
<p align="center">
<a href="<%=(rsDiorDatabase.Fields.Item("DL Path").Value)%>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Download','','../../Images/Masters%20Buttons/Download%20Over.jpg',1)">

<img src="../../Images/Masters%20Buttons/Download%20Up.jpg" alt="Download the file." name="Download" width="103" height="29" border="0" id="Download" />

</a></p>
========================================
 
The dreamweaver rollovers are way bulky... you could just:

<img src="news_1.gif" id="im1" onmouseOver="document.getElementById('im1').src='news_2.gif'" onmouseOut="document.getElementById('im1').src='news_1.gif'">

[conehead]
 
Yes I did, it exists Chris.

TheConeHead I tried your code, it doesn't change the fact that the rollover doesn't work when pointing on the database...

Thanks for trying
 
Sorry it doesn't have an URL. This is the code of the part I'm interested in:

========================================
<p align="center">
<a href="<%=(rsDiorDatabase.Fields.Item("DL Path").Value)%>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Download','','../../Images/Masters%20Buttons/Download%20Over.jpg',1)">

<img src="../../Images/Masters%20Buttons/Download%20Up.jpg" alt="Download the file." name="Download" width="103" height="29" border="0" id="Download" />

</a></p>
========================================

But you know what? I'm just gonna give that up and put just a picture link cause I'm running out of time with that project anyway :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top