Andrew
New Member
Say it with me: "Post counts are not a status symbol!"
Posts: 6
|
Post by Andrew on May 10, 2004 0:00:17 GMT
I used the code for the pop-up Saybox here, but it is not working. I put the code in and everything, but the pop-up part doesn't work. This is what I put in.
Very top in my headers:
<script type="text/javascript">function popSayBox(){ var pageURL = 'http://www.freewebs.com/andrewsproboard/saybox.htm'; // The URL to your SayBox page var width = 160; // The width of the pop-up var height = 345; // The height of the pop-up window.open(pageURL,'SayBoxwin','width='+width+',height='+height+',top='+parseInt((screen.height - height) / 2)+',left='+parseInt((screen.width - width) / 2)+',scrollbars=no,resizeable=no');}</script>
In my menu code:
<a href="javascript:popSayBox();">SayBox</a>
Why is this not working. Thanks for your help.
Andrew
|
|
|
Post by Ron on May 10, 2004 0:06:09 GMT
I used the code for the pop-up Saybox here, but it is not working. I put the code in and everything, but the pop-up part doesn't work. This is what I put in. Very top in my headers: <script type="text/javascript">function popSayBox(){ var pageURL = 'http://www.freewebs.com/andrewsproboard/saybox.htm'; // The URL to your SayBox page var width = 160; // The width of the pop-up var height = 345; // The height of the pop-up window.open(pageURL,'SayBoxwin','width='+width+',height='+height+',top='+parseInt((screen.height - height) / 2)+',left='+parseInt((screen.width - width) / 2)+',scrollbars=no,resizeable=no');}</script> In my menu code: <a href="javascript:popSayBox();">SayBox</a> Why is this not working. Thanks for your help. Andrew In your headers, the script is all on one line... The reason it's not working is because the comments are commenting out the script, try re-copying/pasting the code from the thread in Customization/Modding to your headers/footers.. make sure the code isn't all on one line.. If that doesn't work, try copying to a notepad first, then edit the script from the notepad, and then put it in your headers.
|
|
Andrew
New Member
Say it with me: "Post counts are not a status symbol!"
Posts: 6
|
Post by Andrew on May 10, 2004 0:08:05 GMT
In your headers, the script is all on one line... The reason it's not working is because the comments are commenting out the script, try re-copying/pasting the code from the thread in Customization/Modding to your headers/footers.. make sure the code isn't all on one line.. If that doesn't work, try copying to a notepad first, then edit the script from the notepad, and then put it in your headers. What do you mean, not all on one line? Don't understand that part.
|
|
|
Post by Ron on May 10, 2004 0:09:27 GMT
In your headers, the script is all on one line of the page... like this:
<script type="text/javascript">...</script>
when it should look like this:
<script type="text/javascript"> . . . </script>
|
|
Andrew
New Member
Say it with me: "Post counts are not a status symbol!"
Posts: 6
|
Post by Andrew on May 10, 2004 0:16:54 GMT
In your headers, the script is all on one line of the page... like this: <script type="text/javascript">...</script> when it should look like this: <script type="text/javascript"> . . . </script> Ok. I just did that and still nothing. I tried editing the code in Notepad and re-copying the code again. But nothing. This is what I have now. <script type="text/javascript"> function popSayBox(){ var pageURL = 'http://www.freewebs.com/andrewsproboard/saybox.htm'; // The URL to your SayBox page var width = 160; // The width of the pop-up var height = 345; // The height of the pop-up window.open(pageURL,'SayBoxwin','width='+width+',height='+height+',top='+parseInt((screen.height - height) / 2)+',left='+parseInt((screen.width - width) / 2)+',scrollbars=no,resizeable=no');} </script>
|
|
|
Post by Ron on May 10, 2004 0:18:33 GMT
Ok. I just did that and still nothing. I tried editing the code in Notepad and re-copying the code again. But nothing. This is what I have now. <script type="text/javascript"> function popSayBox(){ var pageURL = 'http://www.freewebs.com/andrewsproboard/saybox.htm'; // The URL to your SayBox page var width = 160; // The width of the pop-up var height = 345; // The height of the pop-up window.open(pageURL,'SayBoxwin','width='+width+',height='+height+',top='+parseInt((screen.height - height) / 2)+',left='+parseInt((screen.width - width) / 2)+',scrollbars=no,resizeable=no');} </script> you've almost got it... just change this line: // The height of the pop-up window.open(pageURL,'SayBoxwin','width='+width+',height='+height+',top='+parseInt((screen.height - height) / 2)+',left='+parseInt((screen.width - width) / 2)+',scrollbars=no,resizeable=no');} to this: // The height of the pop-up window.open(pageURL,'SayBoxwin','width='+width+',height='+height+',top='+parseInt((screen.height - height) / 2)+',left='+parseInt((screen.width - width) / 2)+',scrollbars=no,resizeable=no');}
|
|
Andrew
New Member
Say it with me: "Post counts are not a status symbol!"
Posts: 6
|
Post by Andrew on May 10, 2004 0:20:49 GMT
you've almost got it... just change this line: // The height of the pop-up window.open(pageURL,'SayBoxwin','width='+width+',height='+height+',top='+parseInt((screen.height - height) / 2)+',left='+parseInt((screen.width - width) / 2)+',scrollbars=no,resizeable=no');} to this: // The height of the pop-up window.open(pageURL,'SayBoxwin','width='+width+',height='+height+',top='+parseInt((screen.height - height) / 2)+',left='+parseInt((screen.width - width) / 2)+',scrollbars=no,resizeable=no');} Thanks. That worked. Thanks for all your help.
|
|
|
Post by Ron on May 10, 2004 0:22:05 GMT
You're welcome, Enjoy your SayBox if you have any other problems please create a new thread
|
|