button link to same pg.

liunx

Guest
This code works when the link is to another page; but not to a location on the same page. <br />
<br />
I want the reader to go to a different location further down on the same page when he clicks on the button image. Can you help me with that?<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#NB"><IMG ISMAP SRC="../docs/nextbutton.gif" width="200" height="39" border="0"></a> <br />
<br />
There is a name="NB" further down on the page.<br />
<br />
Thank you.<!--content-->How does that tag further on your page, with name 'nb' look like?<br />
<br />
<A name="NB"><br />
<br />
JayDie<!--content-->That tag reads:<br />
<br />
<A NAME="NB"><br />
<br />
The following is the current form button link, which works. I'm trying to replace this form button with my gif button.<br />
<br />
<form name="form1" method="link" action="#NB"><P><input type="submit" name="Submit" value="Next Briefing"></P></form><!--content-->From memory i think it is:<br />
<br />
<input type="image" name="Submit" src=http://www.webdeveloper.com/forum/archive/index.php/"image.gif" /><br />
<br />
<br />
Regards,<br />
Andrew Buntine.<!--content-->This is not working either:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#NB"> <input type="image" name="Submit" src="nextbutton.gif"></a><!--content-->Does anyone have another suggestion? I'll appreciate your help.<!--content-->What's really what you want to do?<br />
<br />
If you use the <A name="name"> and on another place on the site you refer to it (A href=http://www.webdeveloper.com/forum/archive/index.php/#name) it'll go to the place where the anchor is.<br />
<br />
Do you want to change a image on a button when you click the link? Or what?!<br />
<br />
JayDie<!--content-->try putting<br />
<ahref=http://www.webdeveloper.com/forum/archive/index.php/"pagename.htm#NB"><IMG ISMAP SRC="../docs/nextbutton.gif" width="200" height="39" border="0"></a <br />
not much of a difference but it is worth a try<!--content-->This is the current link, which works (as you said it would). <br />
<br />
<form name="form1" method="link" action="#NB"><P><input type="submit" name="Submit" value="Next Briefing"></P></form><br />
<br />
I'm only trying to replace this "form button" with my gif button. I tried this, but it didn't work:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#NB"><IMG ISMAP SRC="../docs/nextbutton.gif" width="200" height="39" border="0"></a><!--content-->Thank you for the suggestion c. martz. It did not work however. I don't understand why the code will work when the link is to another page, but not to a tag on the same page?<br />
<br />
I appreciate you folks continuing to plug away at it with me.<!--content-->where your link is put (without the ismap):<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#nb"><img border="0" src="pic.jpg"></a> <br />
then above the content you want to show put:<br />
<a name="nb"></a><!--content-->You are brilliant -- that worked!<br />
<br />
This is a wonderful forum. I'll be back with my mouseover questions, if I can't figure that out soon. (Now I'm trying to make the button depress when clicked; or switch to a second gif image on mouse rollover.)<br />
<br />
Thank you sooooo much.<!--content-->
 
Back
Top