JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 11th, 2005, 11:53 PM
fiahmad fiahmad is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 1 fiahmad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 37 sec
Reputation Power: 0
Question How to do a 3rd party text rollover with image

Does anyone know how to do a third-party rollover with text, not an image? Like you rollover the text with your mouse, and an image pops up somewhere else on your page.

I was actually looking for something that allows additional text to pop up with the image, so if you guys know how to do that I'd appreciate it.

I've attached a crude visual aid of what I want. The first image is before the cursor rolls over the text.
Attached Images
File Type: gif rollover_1.gif (2.2 KB, 538 views)
File Type: gif rollover_2.gif (31.8 KB, 459 views)

Reply With Quote
  #2  
Old November 15th, 2005, 04:01 PM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: I have emerged from the place of spells and fairies
Posts: 97 ChiefWigs1982 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 17 h 35 m 12 sec
Reputation Power: 4
Code:
<a href="javascript:;" onmouseover="toggle('div1');" onmouseout="toggle('div1');">Hyperlink Text</a>

<div id="div1" style="display:none;">
   <img src="some image.gif" /><br />
   Some text here...
</div>
And the js:
Code:
function toggle(o)
{
   var div=document.getElementById(o);
   div.style.display=(div.style.display=='none')? 'block':'none';
}

Something like that should do it...
__________________
Sinthetic - Alternative UK Hiphop: What's the worst that could happen?

"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet"



Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > How to do a 3rd party text rollover with image


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT