SMF For Free Support Forum
Signup For Free Forum
August 20, 2008, 05:36:22 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: Request  (Read 309 times)
0 Members and 1 Guest are viewing this topic.
Gordie
SMF For Free Hero
*
Offline Offline

Posts: 599


I'm around somewhere!!!


View Profile WWW
« on: May 07, 2008, 07:10:46 pm »

This is not so much a request for a code, but rather a request for a modification on a code we already have in the index. I am refering to the Add More Tabs code. It works beautifully with a normal link. However, I would like to use it with a popup link. One something like this:
javascript:popUp('http://freelandforum.com') = Made with a simple popup generator

any help would be greatly appreciated
Logged



Agent Moose
Moderator
*****
Offline Offline

Posts: 612


Do not PM me for Code Support or Request


View Profile WWW
« Reply #1 on: May 07, 2008, 07:58:15 pm »

you should just beable to put javascript:popUp part in the URL/LINK part of the add tabs...
Logged


SMC Code Index V3 - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.
Gordie
SMF For Free Hero
*
Offline Offline

Posts: 599


I'm around somewhere!!!


View Profile WWW
« Reply #2 on: May 07, 2008, 08:02:09 pm »

I tried that and it won't work
Logged



Agent Moose
Moderator
*****
Offline Offline

Posts: 612


Do not PM me for Code Support or Request


View Profile WWW
« Reply #3 on: May 08, 2008, 04:56:13 pm »

Have you just tried using HTML to see if it works like that?

Code:
<a href="javascript:void(0)" onclick="popUp('http://freelandforum.com')">Click Me</a>
Logged


SMC Code Index V3 - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.
Gordie
SMF For Free Hero
*
Offline Offline

Posts: 599


I'm around somewhere!!!


View Profile WWW
« Reply #4 on: May 08, 2008, 05:39:03 pm »

The popup will work fine anywhere else, but once plugged into the Add More Tabs code, it won't. I even used single ' instead of double "
Logged



Agent Moose
Moderator
*****
Offline Offline

Posts: 612


Do not PM me for Code Support or Request


View Profile WWW
« Reply #5 on: May 09, 2008, 02:29:49 pm »

Code:
<script>
function addlinks(){
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
var links = new Array()
links[links.length] = ["LINKS NAME","javascript:void(0)' onclick='popUp(\"http://freelandforum.com\")"];

for(m=0;m<links.length;m++){
$(".maintab_last").before("<td valign='top' class='maintab_back'><a href='"+links[m][1]+"'>"+links[m][0]+"</a></td>");
};});}
addlinks();
</script>

See if that works.
Logged


SMC Code Index V3 - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.
Gordie
SMF For Free Hero
*
Offline Offline

Posts: 599


I'm around somewhere!!!


View Profile WWW
« Reply #6 on: May 09, 2008, 02:50:29 pm »

YES YES YES...Finally. Thanks Moose. I was getting a little bald on top because of this.
Logged



Agent Moose
Moderator
*****
Offline Offline

Posts: 612


Do not PM me for Code Support or Request


View Profile WWW
« Reply #7 on: May 09, 2008, 05:34:12 pm »

Lol, No problem Smiley
Logged


SMC Code Index V3 - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.


Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.441 seconds with 19 queries.