Advertise Here

Author Topic: [Finished Request] List Prompt  (Read 2078 times)

0 Members and 1 Guest are viewing this topic.

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
[Finished Request] List Prompt
« on: February 22, 2009, 03:36:17 pm »
Forum Url: http://pic.smfforfree4.com
Lol sorry for all the requests lately, I've been doing some new things on my forum. This will most likely be my last request

OK I've seen this on a lot of forums,  a prompt pop-up when you click the

When you click it, a pop-up comes up saying this: (in attatchment)

I have a feeling this code has already been made, if it has, please leave the URL for the topic and lock this. If not, I think this would be a great code! :)

(The attatchment is from a forum powered by VBulletin)


This request has been finished!
Footers:
Code: [Select]
<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>

Now click on the button and there will be a pop-up for it!
« Last Edit: May 10, 2009, 12:58:46 pm by Andrew »

Offline chocothunda

  • SMF For Free Member
  • *
  • Posts: 81
    • View Profile
    • Loloutloud

  • Total Badges: 12
    Badges: (View All)
    Apple User Topic Starter Combination Level 2 Level 1
Re: [Request] List prompt
« Reply #1 on: February 23, 2009, 05:58:28 pm »
Shouldn't this be in the Code Requests childboard? 

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Request] List prompt
« Reply #2 on: February 23, 2009, 06:44:13 pm »
I know what you mean, but I don't know how I would make it so that it would pop-up again when you put an item into the box, then click ok.

Kinda hard for me to explain what I'm trying to say.
Check out Revolution X's Brand new Code Index!

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [Request] List prompt
« Reply #3 on: February 27, 2009, 03:53:25 pm »
I think I know what you mean Moose. Maybe ill take a peek into doing it. It would be my first code ever if I did it! :D


Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [Request] List prompt
« Reply #4 on: February 28, 2009, 02:32:47 pm »
Ack, tried it for a while, no luck.

Tougher then I thought, I just tried editing a different code that was similar to this, no luck :(

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
886 Views
Last post October 17, 2007, 10:07:43 pm
by ...shut the hell up...
15 Replies
3398 Views
Last post January 11, 2008, 03:33:15 pm
by LaundryLady
8 Replies
6154 Views
Last post January 07, 2010, 02:25:13 pm
by hell hound
3 Replies
1442 Views
Last post February 22, 2009, 01:51:43 pm
by simply sibyl
4 Replies
4010 Views
Last post September 22, 2013, 11:29:36 pm
by ormocanon