View Full Version : Replacing Double QUOTES " " ??

06-19-2004, 04:40 AM
Hi again :)

I wanted to add this link to a toolbar Im working on but I cant have Double Quotes.

javascript:if(o=document.getElementById('ldf')){void(o.outerHTML='');}else{void(document.body.innerH TML+='<iframe id="ldf" scrolling="no" allowtransparency="true"%20src="http://milov.nl/code/linedraw.html"%20style="position:absolute;z-index:100;top:0px;left:0px;width:100%;height:3000px;"></iframe>')}

How would this work without double quotes? Is it possible?

I've searched and found something about replacing doubles with
javascript:document.write(q+'double quoted'+q)
but I tried and could not get it.

Any Ideas?


(the script is originaly from milov I think, called linedraw. Lets you draw on this page :) )

Willy Duitt
06-19-2004, 04:46 AM
Use a single quote and escape with a backslash: \'

06-19-2004, 05:14 AM
Thanks Willie.

Could you show me how it should look if you got a sec. Im pretty retarded. :)


Willy Duitt
06-19-2004, 05:35 AM
Try this, I used Search & Replace ( " --> \' ):

javascript:if(o=document.getElementById('ldf')){void(o.outerHTML='');}else{void(document.body.innerH TML+='<iframe id=\'ldf\' scrolling=\'no\' allowtransparency=\'true\'%20src=\'http://milov.nl/code/linedraw.html\'%20style=\'position:absolute;z-index:100;top:0px;left:0px;width:100%;height:3000px;\'></iframe>')}

06-19-2004, 06:33 AM
Dude, the code you put works great, thanks!
But im using reghacker amd it alerts this is
an invalid backlash and only
\\. -- \", -- \n, -- \t, or \000 through \400
can be used.

Is it possible to use these to replace, in js?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum