September 04, 2010, 01:57:16 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

List Prompt


Pages: [1]   Go Down
  Print  
Author Topic: List Prompt  (Read 394 times)
0 Members and 2 Guests are viewing this topic.
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
« on: May 01, 2009, 08:39:08 pm »

Footers:
Code:
<script>
$("img[alt='Insert List']").parent("a").attr("href","javascript:List1();");
$("img[alt='Insert List']").parent("a").attr("onclick","");
//Created by Agent Moose (revolutionx.smfforfree3.com)
function List1(){
document.postmodify.message.value += "[list]\n";
List2();
};
function List2(){
var list = prompt("Enter information for your list:","");
if(list){
document.postmodify.message.value += "[li]" + list + "[/li]\n";
List3();
}else if(!list || list == false){
List4();
};};
function List3(){
var tree = prompt("Enter information for your list:","");
if(tree){
document.postmodify.message.value += "[li]" + tree + "[/li]\n";
List2();
}else if(!tree || tree == false){
List4();
};};
function List4(){
document.postmodify.message.value += "[/list]\n";
};
</script>

Original Request: http://revolutionx.smfforfree3.com/index.php/topic,525.0.html

Just click on the List BBC button and a prompt will come up so you can enter your infromation for the list Smiley

Enjoy Smiley
Share Report Spam   Logged


Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
« Reply #1 on: May 01, 2009, 08:50:55 pm »

Ah Moose thank you so much! I've been waiting for this one forever!, Great job Smiley Gonna go try it out Cheesy

One suggestion...Is it possible you could combine it with this code?
Report Spam   Logged

Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
« Reply #2 on: May 01, 2009, 08:57:18 pm »

Pft, simple Tongue

Code:
<script>
$("img[alt='Insert Hyperlink']").parent("a").attr("href","java"+"script:Hyper();");
$("img[alt='Insert Hyperlink']").parent("a").attr("onclick","");
//Created by Agent Moose (revolutionx.smfforfree3.com)
function Hyper(){
var hyperlink = prompt("Enter URL for Link:","http://");
if(!hyperlink){ alert("You must enter a URL for your Link!"); return; };
var hypername = prompt("Enter Link Name:","");
if(!hypername){ alert("You must enter a Name for your URL!"); return; };
document.postmodify.message.value += "\[url="+hyperlink+"\]"+hypername+"\[/url\]";}
$("img[alt='Insert Image']").parent("a").attr("href","java"+"script:image();");
$("img[alt='Insert Image']").parent("a").attr("onclick","");
function image(){
var image = prompt("Enter URL for Image:","http://");
if(!image){ alert("You must enter a URL for your Image!"); return; };
document.postmodify.message.value += "\[img\]"+image+"\[/img\]";}
$("img[alt='Insert Email']").parent("a").attr("href","java"+"script:email();");
$("img[alt='Insert Email']").parent("a").attr("onclick","");
function email(){
var email = prompt("Enter the E-Mail address:","");
if(!email){ alert("You must enter a vaild E-mail address!"); return; };
document.postmodify.message.value += "\[email\]"+email+"\[/email\]";}
$("img[alt='Insert List']").parent("a").attr("href","javascript:List1();");
$("img[alt='Insert List']").parent("a").attr("onclick","");
function List1(){ document.postmodify.message.value += "[list]\n"; List2(); };
function List2(){
var list = prompt("Enter information for your list:","");
if(list){
document.postmodify.message.value += "[li]" + list + "[/li]\n";
List3(); }else if(!list || list == false){ List4(); };};
function List3(){
var tree = prompt("Enter information for your list:","");
if(tree){
document.postmodify.message.value += "[li]" + tree + "[/li]\n";
List2(); }else if(!tree || tree == false){ List4(); };};
function List4(){document.postmodify.message.value += "[/list]\n";};
</script>
Report Spam   Logged


Andrew
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 539



View Profile WWW
« Reply #3 on: May 01, 2009, 09:01:38 pm »

Now im a satisified customer, thanks so much Moose! You are truly a genius Cheesy
Report Spam   Logged

Lyle
MeTube
Member
Member
Offline Offline

Gender: Male
Posts: 69



View Profile
« Reply #4 on: June 07, 2009, 04:01:49 pm »

the list prompt is good for some things, like posting  tutorial website list etc...
Report Spam   Logged
Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
« Reply #5 on: June 24, 2009, 05:15:25 am »

Thx Moose!
Just added code.
It's really helpful
Report Spam   Logged







Your Ad Here
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting