Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ddrivetip(thetext, thecolor, thewidth){
- if (ns6||ie){
- if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
- if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
- //Is there a way to account for \n as newline
- tipobj.innerHTML=thetext
- enabletip=true
- return false
- }
- }
- /*
- Sample Call
- <div id="shoulder" ONMOUSEOVER="ddrivetip('1 Armor<br /><a href="/class.php?c=Monk&d=Shoulder">Shoulder</a><br /> All Resistance: 1<br />','black')"; ONMOUSEOUT="hideddrivetip()" style="background-image: url(images/Shoulder.png);"></div>
- When the first variable given to ddrivetip is plaintext, that is to say no html at all, it works fine. If I add HTML it breaks and doesn't display as a tool tip.
- This is displayed on the div
- Shoulder
- All Resistance: 1
- ','black')"; ONMOUSEOUT="hideddrivetip()" style="background-image: url(images/Shoulder.png);">
- so it would seem that the link is breaking it?
- */
Advertisement
Add Comment
Please, Sign In to add comment