Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] Javascript in sidebar for "Newwindow" Not Working-window opens but wrong siz


  #1  
Old Mar 17, 2013, 08:19 PM
dpnstl
 
6 posts · Jun 2010
[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>
  #2  
Old Mar 17, 2013, 08:45 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
It worked as expected for me. The item that shows is the same size as the dimentsions in the script.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Mar 17, 2013, 08:59 PM
dpnstl
 
6 posts · Jun 2010
It worked for me on another site too...I must have something on this site that is causing an issue..ugh...thanks!
  #4  
Old Mar 18, 2013, 03:48 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Try disabling all plugins and see if one is causing the conflict
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Mar 18, 2013, 05:32 AM
dpnstl
 
6 posts · Jun 2010
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?
  #6  
Old Mar 18, 2013, 05:52 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what is the url of teh site?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
javascript, newwindow, sidebar



Similar Threads
Thread Thread Starter Forum Replies Last Post
Set a color for an "active" or "current" link in a sidebar widget. artaud Sidebars & Widgets 8 Oct 11, 2011 05:57 AM
Sort order of comments in "Page" is wrong, WP: 3.2.1 and Atahualpa 3.6.7 large Page & Category Menu Bars 4 Aug 28, 2011 01:18 PM
[SOLVED] Show Blog Tagline &quot;Yes&quot;/&quot;No&quot; not working? Shepherd Jim Header configuration & styling 8 Jun 21, 2010 10:09 AM
When window isn't maximized, blog looks "squished" kmagyarics Page & Category Menu Bars 1 Nov 10, 2009 07:08 AM
modifying font size of "Today's Events" and "Upcoming Events" in sidebar ritland Forum How-To 0 Mar 16, 2009 04:23 PM


All times are GMT -6. The time now is 05:52 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.