|
Post by matthew on Feb 9, 2006 19:45:08 GMT -5
<a href="#" onClick="window.open(' URL HERE',' PAGE NAME HERE','scrollbars,location=no,height= HEIGHT GOESHERE,width= WIDTH GOES HERE');return false;"> TEXT LINK HERE</a> URL HEREreplace the bold text with the link to web page PAGE NAME HEREreplace the bold text with the name of your window. doesn't really matter what. just call it... something ;D HEIGHT GOES HEREreplace the bold text with the height (in pixels) you want the window to be. WIDTH GOES HEREreplace the bold text with the width (in pixels) you want the window to be. TEXT LINK HEREreplace the bold text with the text link to the pop-up window.
for example, ocgfx's shoutbox code looks like this <a href="#" onClick="window.open(' simpleshout.co.uk/shoutbox/shoutbox.php?u=ocgfx',' shouty',' scrollbars,location=no,height= 400,width= 200');return false;"> Shoutbox</a>
|
|
md
Student
Posts: 4
|
Post by md on Jan 11, 2008 10:12:02 GMT -5
Exactily what does this do?
|
|
|
Post by Jordan on Jan 11, 2008 15:59:27 GMT -5
Places a button in your forum the you can make whatever you want to pop-up in it.
|
|
Bisurge
Student
Hydralisks Own
Posts: 47
|
Post by Bisurge on Apr 22, 2008 21:13:46 GMT -5
How about one that pops up when you enter a board? I mean like you click register and there's a Rules popup. I just started Javascript with HTML too and I think it goes something like this: (correct me if I do something wrong please! I just want to try this, I'm not trying to prove anything)
<html> <script = "text/javascript"> javascript:alert("Rules: 1. No Spamming 2. No trolling 3. No baiting 4. No godmoding") </script> </html>
|
|
|
Post by Andrew on Apr 23, 2008 10:21:45 GMT -5
<script> alert:("RULES HERE"); </script>
No need for the HTML or the javsctipt:alert
|
|
Bisurge
Student
Hydralisks Own
Posts: 47
|
Post by Bisurge on Apr 27, 2008 16:39:37 GMT -5
Yeah I didn't know much about JavaScript... But now I know a little more. And I know I forgot a friggen semicolon. When is // or /*(javascript)*/ used though?
|
|
|
Post by momotaro on Apr 21, 2009 19:06:55 GMT -5
Those are for comments. With /*, you put */ at the end, // only goes once.
|
|