Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Display text on rollover


Message #1 by KATHLEEN.M.WHALEN@c... on Thu, 22 Feb 2001 08:55:26 -0500
probably best to use images or form elements for this sort of thing, 
you can use something like :

<a href="one.html" 
onmouseover="parent.mainFrame.swapimage.src='on.gif'" 
onmouseout="parent.mainFrame.swapimage.src='off.gif'"><img 
src="off.gif"></a>

Which will swap the source of an img (off.gif) in the main frame to 
(on.gif) when you mouse over this link in any other frame at the same 
level.

> -----Original Message-----
> From: KATHLEEN.M.WHALEN@c...
> [mailto:KATHLEEN.M.WHALEN@c...]
> Sent: 22 February 2001 13:55
> To: KATHLEEN.M.WHALEN@c...; html_code_clinic@p...
> Subject: [html_code_clinic] Display text on rollover
> Importance: High
> 
> 
>      I have a page that contains three frames -- upper, left 
> nav. and main 
>      body.  I have set the page up already so that when we 
> click on the 
>      buttons on the left frame, the text appears in the Main 
> Body frame.  
>      
>      What I would like to see is when we rollover the 
> "products" button (in 
>      the left frame),  some explanatory text would appear in 
> the white 
>      space of the Main Boday stating "This will display the 
> products our 
>      department has designed."  Then when it's clicked the 
> imbedded page 
>      will appear.
>      
>      I'm looking for some sample code and I'm wondering if I 
> need to create 
>      a graphic that contains/is my text or can I display the 
> text normally?
>      
>      I'm really new to HTML code and not familiar with how to display 
>      rollover graphics/text within different frames.
>      
>      Thanks,
>      KMW
> 
> 

  Return to Index