Java popup quicktag problem
-
Hi all,
Having a spot of bother creating a quicktag for a java popup script that I’m using…
The scrip is this (in index.php)…<script language=”JavaScript”>
<**!–
function showImage(url, width, height) {
imageWin = open(‘nothing’, ‘imageWindow’, ‘width=’+width+’,height=’+height+’,scrollbars=no,location=no,toolbar=no’);
imageWin.document.writeln(‘<html><head>’);
imageWin.document.writeln(‘<title>Ektopic Popup!</title>’);
imageWin.document.writeln(‘</head><body>’);
imageWin.document.writeln(‘<img src=”‘+url+'” width=”‘+width+'” height=”‘+height+'” style=”position: absolute; top: 0; left: 0; margin-top: 0; margin-left: 0;”>’);
imageWin.document.writeln(‘</body></html>’);
}
//–**>
</script**>
(WITHOUGH THE ASTERISKS)The text that need to enter is this (in quicktags.js)…
<**a href=”javascript:showImage(‘URL HERE’, WIDTH, HEIGHT)”>LINK TITLE<**/a>.
(WITHOUGH THE ASTERISKS)
I’ve tried to create the quicktag like this …edButtons[edButtons.length] = new edButton(‘ed_<‘
,’popup’
,'<**a href=”javascript:showImage(‘URL HERE’, WIDTH, HEIGHT)”>LINK TITLE<**/a>.’
,”
,”
);(WITHOUGH THE ASTERISKS)
…which is the same format that has worked fine for all the other quicktags that I’ve created, however, I can’t get this one to work.
All that happens is that ALL the quicktages disapear!
Any ideas please?
Reevo
- The topic ‘Java popup quicktag problem’ is closed to new replies.