NameSilo

Simple HTML question

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

zack

Account Closed
Impact
5
This is the code for a button that soes mouseover effects, etc.
How do I make the page stop loading new ones. (I recently converted from a frame setup.)
<img border="0" id="img3" src="button17.jpg" height="20" width="100" alt="Exhaust" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'button18.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'button17.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img3',/*url*/'button19.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img3',/*url*/'button18.jpg')" fp-style="fp-btn: Jewel 3; fp-orig: 0" fp-title="Exhaust">
 
Last edited:
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
PLEASE PLEASE PLEASE USE "HTML" TAGS! (that's [ HTML ] and [ /HTML ] without the spaces).

That will produce this:
HTML:
<img border="0" id="img3" src="button17.jpg"
height="20" width="100" alt="Exhaust" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'button18.jpg')"
onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'button17.jpg')"
onmousedown="FP_swapImg(1,0,/*id*/'img3',/*url*/'button19.jpg')"
onmouseup="FP_swapImg(0,0,/*id*/'img3',/*url*/'button18.jpg')"
fp-style="fp-btn: Jewel 3; fp-orig: 0" fp-title="Exhaust">

Which you would agree is MUCH easier to read.

Otherwise, I'm not exactly sure. There's an easier way to do this I think though, give the image a name, then source, then when the user rolls the mouse over, do something like:

imagename.src='image_url.jpg'

See what I mean?
 
Last edited:
0
Close
No, not really. I want to make the hyperlink to load the page in the same browser. When I click it it opens a new window for each page.
 
0
Close
In your <a> tag, put target="_self" in it.
 
0
Close
Thats exactly what I wanted. I'll give ya NP. Thanks man. I appreciate it.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back