Jump to content
MakeWebGames

Recommended Posts

Posted

While using the "Title" attribute for an area within an image map as the tool tip I noticed a delay in the display of the title on the screen.

Any way to speed this up so it is instant ? Should I not use the title attribute for this and try JS to control the mouseover event and create a tool tip ?

Just looking to speed it up as i've seen it done just not sure the most efficient way to do it .

thanks in advance

Posted

Nope, that's something your browser controls.

You can use javascript to create your own tooltips.

There's a really nice one called wz_tooltip but apparently the website for it is gone.

Posted

Might be wrong but y use JS when you can use something like this

 

a.Tooltip { 
position : relative; 
z-index : 24; 
background-color : #555; 
color : #000; 
text-decoration : none; 
} 
a.Tooltip:hover { 
z-index : 25; 
} 
a.Tooltip span { 
display : none; 
} 
a.Tooltip:hover span { 
display : block; 
position : absolute; 
top : 2em; 
left : 2em; 
width : 14em; 
border : 1px solid #333; 
background-color : #555; 
color : #000; 
text-align : center; 
}

 

i would like to know what the advantage is in using JS rather then CSS

Posted

images should'nt be a problem either within the css for the tooltip

 

a.Tooltip:hover span.message { 
display : block; 
position : absolute; 
top : 2em; 
left : 2em; 
width : 14em; 
border : 1px solid #333; 
background: url(backgroundimage.gif) repeat bottom;
color : #000; 
text-align : center; 
}

 

or within the span when called

 

<span class="message">Sample message with a small image <img src=image.gif  border=0 
width=32 height=32>in between this text.</span>
Posted

Yea i don't see why it could'nt be done like you showed with CSS.I was looking for any ideas on how to solve the speed issue and what i came up with actually uses a combination of JS and mostly CSS.

Downtown Image Map w/ Tooltip

-----------------------------------------

photo-306-b3d641fa.jpg

With what i was trying to do the JS gave me the control with timing on mouse over and mouse out(delay) events.

I'm sure it could be done a lot of different ways.

 

thanks for the replies

 

WRX

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...