By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,963 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,963 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a

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

Nov 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.