: Fixed tab - open in new tab/window : motivo 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 : Re: Fixed tab - open in new tab/window : jonahh 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> : Re: Fixed tab - open in new tab/window : soliver 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 : Re: Fixed tab - open in new tab/window : mikenicoll 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 |