473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

document.write with CoolTips, OverLib or is there something better??

Hello. Anyone feel free to help me as it would be greatly appreciated.
I am attempting to dynamically create tooltips using the likes of
CoolTips, OverLib or anything else out there that will do. I have been
unable to get code like this to go:

<script type="text/javascript">

document.write('<a href="javascript:;" onMouseOver="return
coolTip('CSSCLASS,TEXTFONTCLASS,\'fontClass\',FGCL ASS,\'fgClass\',
BGCLASS,\'bgClass\',STICKY,CAPTIONFONTCLASS,\'capf ontClass\',
CLOSEFONTCLASS, \'capfontClass\', CAPTION,\'<I>CSSCLASS</IExample
#1\', SHADOW', WIDTH, 400, WRAP,
CSSCLASS,TEXTFONTCLASS,'fontClass',FGCLASS,'fgClas s',
BGCLASS,'bgClass',STICKY,CAPTIONFONTCLASS,'capfont Class',
CLOSEFONTCLASS, 'capfontClass', CAPTION,'<I>HEADING</IMore Heading',
SHADOW);" onMouseOut="nd();">example</auses the following style rules
in the HEAD section:');

</script>
Without using document.write, the code works flawlessly. I simply need
to create this code on the fly in the .html pages where I can place the
'Tooltips' with varying text in numerous places in the page.

Thanks in Advance!!!!!!!!!!

Nov 28 '06 #1
2 1610
I do not know you how use the written script, but one thing you should
know that if a HTML page was loaded completely, then use document.write
output HTML codes, the full HTML page will be erased.

IF YOU WANT TO CREATE ELEMENT DYNAMIC, YOU SHOULD USE
document.createElemnt, (see W3C DOM).

On Nov 28, 11:29 am, wesley_snip...@hotmail.com wrote:
Hello. Anyone feel free to help me as it would be greatly appreciated.
I am attempting to dynamically create tooltips using the likes of
CoolTips, OverLib or anything else out there that will do. I have been
unable to get code like this to go:

<script type="text/javascript">

document.write('<a href="javascript:;" onMouseOver="return
coolTip('CSSCLASS,TEXTFONTCLASS,\'fontClass\',FGCL ASS,\'fgClass\',
BGCLASS,\'bgClass\',STICKY,CAPTIONFONTCLASS,\'capf ontClass\',
CLOSEFONTCLASS, \'capfontClass\', CAPTION,\'<I>CSSCLASS</IExample
#1\', SHADOW', WIDTH, 400, WRAP,
CSSCLASS,TEXTFONTCLASS,'fontClass',FGCLASS,'fgClas s',
BGCLASS,'bgClass',STICKY,CAPTIONFONTCLASS,'capfont Class',
CLOSEFONTCLASS, 'capfontClass', CAPTION,'<I>HEADING</IMore Heading',
SHADOW);" onMouseOut="nd();">example</auses the following style rules
in the HEAD section:');

</script>

Without using document.write, the code works flawlessly. I simply need
to create this code on the fly in the .html pages where I can place the
'Tooltips' with varying text in numerous places in the page.

Thanks in Advance!!!!!!!!!!
Nov 28 '06 #2

Is there anyway to launch one of these tooltips using a Button onClick
Event ?

Nov 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brett Baisley | last post by:
Hello I have a block of html code that I want to run by calling a javascript function to print it. Its basically a table with menu items in it that is the same for many pages, and instead of...
12
by: *.* | last post by:
Hey- I seem to be having a problem with the document.lastModified property. The way it is suppose to work is that it returns the date and time at which the document was last modified. IN my...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
5
by: Dave | last post by:
Is there a way to selectively highlight text in an OverLib popup? I'd like to be able to make some text stand out from the rest of the text that is displayed. I tried using a one-cell table with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.