carnageX
General Moderator
Your Local Techy/PC Guru
SPIDERMAN!
Posts: 1,621
|
Post by carnageX on Mar 12, 2007 22:17:23 GMT -5
Ok, I was wondering, what the correct syntax is for a JS pop-up window?
I tried this:
<a href="javascript:popUp('PAGE URL')">TEXT</a>
But no window will come up. Do I need to declare a 'popUp' variable somewhere?
I also tried this:
<!-----------------FragFM Radio JS----------------> <a href="javascript:fragFM()">Listen to FragFM Online Radio! - <b>Under construction</b></a> <!-------------------End of FragFM------------------->
<!-----------------FragFM Radio JS----------------> <type="text/javascript> < !-- Begin function fragFM() { ElementWindow = window.open('http://antisubmission.proboards100.com/index.cgi?board=fragfm', 'FragFM','width=502,height=325') } // End --> </script> <!-----------------End of FragFM-------------------->
What I'm trying to do is make a hidden board that has a media player embedded in it's header, show up in a new window through a JavaScript pop-up. I know it's possible, because I've seen it done. Thanks for any help =).
|
|
carnageX
General Moderator
Your Local Techy/PC Guru
SPIDERMAN!
Posts: 1,621
|
Post by carnageX on Mar 14, 2007 19:20:14 GMT -5
Nvm, I got it worked out.
Not sure if anybody's able to answer a different question or not... but.... How do I get the window to snap to a position of an object in the JS window, no matter what resoltuion the person is using? That way it snaps to the same position in any resolution.
|
|