You're the one that brought up Flash. I was kind of hoping you knew how to do that. I'm just getting started with it myself. From looking over the program (Flash MX 2004) a few times, it seems that there are ways to insert various things, like javascript, images, text, formatting, etc. One just needs to know how. I also have a book on how to code this stuff but, I have yet to figure out where the two (the program and the book) meet. It is not a top priority with me but, I'm sure I will get around to, if not mastering it, at least getting to where I can do some things.
Well, enough about me. Getting back to your original post in this thread, here is what you need to change to get it to open only onclick (addition red):
Code:
<script>
//Modeless window script- By DynamicDrive.com
//for full source code and terms of use
//visit http://www.dynamicdrive.com
function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=0,scrollbars=1")')
}
//configure URL and window dimensions (width/height)
//modelesswin("http://www.yahoo.com",840,600)
//To load via link, use something like below:
//<a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a>
</script>
Then use a link like the one in the above comment*, in the body** of your page:
HTML Code:
<a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a>
* Comments in javascript start with // and are ignored (to the end of the current line) by the browser. They also can start with /* but then they need to be closed with */ and will span (once again being ignored by the browser) until the closing token is encountered.
** That means somewhere below the <body> tag and above the </body> tag. You know, where all of the regular HTML code goes.
Bookmarks