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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Rollover

Status
Not open for further replies.

krichard

Technical User
Dec 5, 2001
41
US
Hello...

I am trying to find a script where i have 5 boxes with text that I can rollover and it will swap the text in a single position below...

So say it looks something like a horiz. menu up top...
HOME PRODUCTS etc

and i rollover home, specific text would appear in the box below, and if i rolled over products, the text would change in the box, with product info.... does this script exist... i don't know how to write javascript, but i really need something like this to work!!!

ANY HELP WOULD BE MUCH APPRECIATED!! THANKS KIM
 
this is very basic, but I think it's what you're asking for
Code:
<HTML>
<BODY>
<FORM NAME=blahForm>
<TABLE BORDER=1>
<TR>
<TD ONMOUSEOVER='blahForm.blahTextArea.value = &quot;Information about Home&quot;;'>HOME</TD>
<TD ONMOUSEOVER='blahForm.blahTextArea.value = &quot;Information about Products&quot;;'>PRODUCTS</TD>
<TD ONMOUSEOVER='blahForm.blahTextArea.value = &quot;Information about whatever&quot;;'>ETC</TD>
</TR>
</TABLE>
<BR><BR>
<TEXTAREA NAME=blahTextArea ROWS=5></TEXTAREA>
</FORM>
</BODY>
</HTML>

-kaht

banghead.gif
 
Hi...

THANK YOU... this is almost exactly what I am looking for! One last thing... i would like to add links in the text box... like this: I am sure i'm not doing it correctly... any tips???


<TD width=&quot;227&quot; ONMOUSEOVER='blahForm.blahTextArea.value = &quot;<a href=&quot;A.htm&quot;>Links On Proverbial Keystroks >Link 1</a> <br><a href=&quot;A.htm&quot;>Link 2</a>&quot;;'><strong>PROVERBIAL
KEYSTROKES</strong> </TD>
 
Don't think you can have a link inside a textarea, possibly try using a <div> or something? I've not used them very much so I can't provide much of a solution as far as they are concerned. Perhaps someone else could be of some help?


-kaht

banghead.gif
 
Do I need to have a text box area? Can't i just have the links show up underneath the Home Box or the Product Box... would that be better?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top