I want to make this work...
This is my script-file(.js):
function showText() {
theText = window.textFile .document.body. innerHTML.repla ce(/\<[^\>]+\>/gm,
"");
}
function productprice(im g,titel,path,be stand1,bestand2 ) {
features =
'toolbar=no,loc ation=no,direct ories=no,status =no,menubar=no, ' +
'scrollbars=no, resizable=no,wi dth=680,height= 600'
dlg = window.open ("","",features )
dlg.document.wr ite ("<HTML>")
dlg.document.wr ite ("<HEAD>")
dlg.document.wr ite ("<TITLE>Try & Buy applicatie :
",titel,"</TITLE>")
dlg.document.wr ite ("</HEAD>")
dlg.document.wr ite ("<link rel=stylesheet href='d2cad.css '
type='text/css'>")
dlg.document.wr ite ("<body onload='window. textFile.locati on =
",bestand1,"'>" )
dlg.document.wr ite ("<CENTER><H3>" ,titel," </H3></CENTER>")
dlg.document.wr ite ("<CENTER><i mg src='",img,"'></CENTER>")
dlg.document.wr ite ("<BR><BR><BR>< FONT size='2'>")
dlg.document.wr ite ("<form><ifr ame id='textFile' onLoad='showTex t()'
align='center'> </iframe></form>")
dlg.document.wr ite ("<CENTER><F ONT size='2'><B>Han dleiding: <A
href='",bestand 2,"'>",bestand2 ,"</A></CENTER>")
dlg.document.wr ite ("<FORM><CENTER ><INPUT type='button' value='Close'
onClick = 'self.close()'> </CENTER></FORM>")
dlg.document.wr ite ("</BODY>")
dlg.document.wr ite ("</HTML>")
}
And this is my HTML-line:
<a href="#" onclick="produc tprice('plaatsw and03.jpg','Pla atswand','downl oad/','data.txt','p laatswand.txt') ">test</a>
Thanks for your replies in advance.
Jeroen
This is my script-file(.js):
function showText() {
theText = window.textFile .document.body. innerHTML.repla ce(/\<[^\>]+\>/gm,
"");
}
function productprice(im g,titel,path,be stand1,bestand2 ) {
features =
'toolbar=no,loc ation=no,direct ories=no,status =no,menubar=no, ' +
'scrollbars=no, resizable=no,wi dth=680,height= 600'
dlg = window.open ("","",features )
dlg.document.wr ite ("<HTML>")
dlg.document.wr ite ("<HEAD>")
dlg.document.wr ite ("<TITLE>Try & Buy applicatie :
",titel,"</TITLE>")
dlg.document.wr ite ("</HEAD>")
dlg.document.wr ite ("<link rel=stylesheet href='d2cad.css '
type='text/css'>")
dlg.document.wr ite ("<body onload='window. textFile.locati on =
",bestand1,"'>" )
dlg.document.wr ite ("<CENTER><H3>" ,titel," </H3></CENTER>")
dlg.document.wr ite ("<CENTER><i mg src='",img,"'></CENTER>")
dlg.document.wr ite ("<BR><BR><BR>< FONT size='2'>")
dlg.document.wr ite ("<form><ifr ame id='textFile' onLoad='showTex t()'
align='center'> </iframe></form>")
dlg.document.wr ite ("<CENTER><F ONT size='2'><B>Han dleiding: <A
href='",bestand 2,"'>",bestand2 ,"</A></CENTER>")
dlg.document.wr ite ("<FORM><CENTER ><INPUT type='button' value='Close'
onClick = 'self.close()'> </CENTER></FORM>")
dlg.document.wr ite ("</BODY>")
dlg.document.wr ite ("</HTML>")
}
And this is my HTML-line:
<a href="#" onclick="produc tprice('plaatsw and03.jpg','Pla atswand','downl oad/','data.txt','p laatswand.txt') ">test</a>
Thanks for your replies in advance.
Jeroen
Comment