[SOLVED] Javascript in sidebar for "Newwindow" Not Working-window opens but wrong siz
I've been messing with this for a while and can't figure it out...pasted the code below in a text widget in the side bar...it works in another non Atahualpa site but on this site is opening a window but not the size indicated in the script....would appreciate any help..
BTW Love the theme! <script type="text/javascript" charset="Shift_JIS" language="javascript"> function popitup(url) { newwindow=window.open(url,'name','height=900,width =500,top=200,left=400,menubar=no,toolbar=no,locati on=no,'); if (window.focus) {newwindow.focus()} return false; } </script> <center> <div style="width: 200px;"> <div style="outline: outset; outline-color: #00F; margin-left: auto; margin-right: auto; outline-width: medium; padding: 2px; color: #00f; width: 200;"> <h4>Stay on top of the St. Louis Real Estate Market!</h4> <p>Sign up for our <span>FREE</span> Weekly St. Louis Real Estate Market updates for your area!</p> <a onclick="return popitup('http://realestateinfoforyou.com/altos-sign-up-form.html')" href="http://realestateinfoforyou.com/altos-sign-up-form.html"> <img src="http://realestateinfoforyou.com/sign-up-here-button.png" alt="" align="middle" style="text-align: center; text-decoration: none; margin-left: auto; margin-right: auto; border: none; outline: none;"></a> <p style="font-size: .8em; text-decoration: none; border: none;"><a style="text-decoration: none;" onclick="return popitup('http://realestateinfoforyou.com/MORE Realtors Market Update [SF]_MO_CLAYTON.pdf')" href="http://realestateinfoforyou.com/MORE Realtors Market Update [SF]_MO_CLAYTON.pdf">Click Here to View Sample Report</a></p> </div> </div> </center> |
It worked as expected for me. The item that shows is the same size as the dimentsions in the script.
|
It worked for me on another site too...I must have something on this site that is causing an issue..ugh...thanks!
|
Try disabling all plugins and see if one is causing the conflict
|
I disabled them all and am still having the same problem, the window works but it just opens at a size of about 400 or 500 square which seems to be a default size....when I click on the button in the same script on other sites it opens to the sizes I've set.....I'm using quite a few iframes on this site and have done a couple of css inserts....I don't think I've changed anything that would affect this, but I guess that may be the next thing to check?
|
what is the url of teh site?
|
I figured it out....I used the same script in 3 different widgets...all had the same function name so it was grabbing the size from the last one....once I changed the function names to unique names everything worked fine..
Thanks for the help and the quick responses! |
All times are GMT -6. The time now is 08:51 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.