hwg-techniques archives | Jan 2000 | new search | results | previous | next |
Re:by 2Nerotik <2nerotik(at)nisa.net> |
|
did you try the old \" (slash double quote) instead of the single quote ? Or reverse the quotes... use the single quote mark to contain the javascript and the double quote marks for the link. #1: href=\"javascript:correct()\" #2: dialog[2] = 'Who...href="javascript:correct()" At 04:03 PM 18/01/2000 -0600, Alan Greiner wrote: >I am coding a javascript that breaks several statements into parts of an >array: > >var dialog=new Array() > >dialog[0]="<center>Are you ready to see how much you know.</center>" >dialog[1]="<center>Question number 1</center>" >dialog[2]="Who was the 16th President of The United States of >America?<br><a href='javascript:correct()' >onMouseOver='window.status='Click on an Answer!';return true;'>1.Abraham >Lincoln</a><br><a href='javascript:incorrect()'>2.Calvin >Coolidge</a><br><a href='javascript:incorrect()'>3.Ulysess S. Grant</a>" > >dialog[2] is all on one line > >Here is the problem: the hyperlinks don't work in netscape because I am >not using a double quote - I can't because is messes up the array and I >need a third way (type of quote) to deal with my onMouseOver quotes. .oOo. || You can only be young once. || But you can be immature forever. || || Addicted 2 Swing ---> http://www.nisa.net/~2nerotik/ || Fontaholic ? ---> http://www.fontsanon.com || HTML Writers Guild ---> http://www.hwg.org
HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA