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


 
Prev Previous Post   Next Post Next
  #1  
Old Mar 17, 2013, 07: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>
 

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 04: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 12:18 PM
[SOLVED] Show Blog Tagline &quot;Yes&quot;/&quot;No&quot; not working? Shepherd Jim Header configuration & styling 8 Jun 21, 2010 09:09 AM
When window isn't maximized, blog looks "squished" kmagyarics Page & Category Menu Bars 1 Nov 10, 2009 06:08 AM
modifying font size of "Today's Events" and "Upcoming Events" in sidebar ritland Forum How-To 0 Mar 16, 2009 03:23 PM


All times are GMT -6. The time now is 10:41 PM.


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