Forum Support

Shape 5
March 29, 2024, 01:35:34 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Fixed tab - open in new tab/window  (Read 565 times)
motivo
Jr. Member
**
Offline Offline

Posts: 11



« on: June 05, 2012, 03:25:07 AM »

Hi,

i want to edit the 'fixed_tabs.php' so that the given url opens in a new tab/windows instead of opening in the current window

thnx
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: June 05, 2012, 12:22:48 PM »

Hello,

Here is some code on how to open links in new windows:

onclick="window.open('http://www.yoursite.com')"

usage: <div onclick="window.open('http://www.yoursite.com')"> Your text here </div>

Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
soliver
Jr. Member
**
Offline Offline

Posts: 16



« Reply #2 on: April 18, 2013, 06:44:32 PM »

Jonahh,

Can you show us what code to modify in fixed_tabs.php to make the URL open in a new window.

<?php if($s5_lr_tab1_text != "") { ?>
   <div class="<?php echo $s5_lr_tab1_class;?> s5_lr_tab" <?php if($s5_lr_tab1_click != "") { ?>onclick="window.document.location.href='<?php echo $s5_lr_tab1_click; ?>'"<?php } ?> style="color:#<?php echo $s5_lr_tab_font; ?>;background-color:#<?php echo $s5_lr_tab_color; ?>;border:1px solid #<?php echo $s5_lr_tab_border; ?>;<?php if($s5_lr_tab1_left_right == "left") { ?>left:-2px;<?php } ?><?php if($s5_lr_tab1_left_right == "right") { ?>right:-2px;<?php } ?>top:<?php echo $s5_lr_tab1_vp;?>%;height:<?php echo $s5_lr_tab1_height ?>px" id="s5_lr_tab1">
      <div class="s5_lr_tab_inner" id="s5_lr_tab_inner1" <?php if ($browser != "ie7" && $browser != "ie8" && $browser != "ie9") { ?>style="margin-top: <?php echo ($s5_lr_tab1_height) - 30?>px;"<?php } ?>>
         <?php echo $s5_lr_tab1_text; ?>
      </div>
   </div>
<?php } ?>

I tried replacing onclick="window.document.location.href with onclick="window.open.location.href with no luck.

Any suggestions...

Thanks.

Scott
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #3 on: April 19, 2013, 07:15:19 PM »

Hello,

Here is an example for you on how to do this:

onclick="window.open('<?php echo $s5_lr_tab1_click; ?>')"<?php } ?>

-Mike
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.