1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Not sure what language, but please help

Discussion in 'Programming' started by Hades, May 23, 2007.

  1. #1
    I want to add a box like the one on www.proxyusers.net (The one in the sidebar with the websites in it. It's similar to the one on proxy.org) Does anyone know where I can get a script like that? i would like to add it to a sidebar on my site, with my own sites. I am not sure what it's supposed to be coded in so i put it in general. Hope someone can help me

    Thank you
    Nick
     
    Hades, May 23, 2007 IP
  2. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #2
    It's JavaScript:

    <script language="javascript">
    var ran_number=Math.floor(Math.random()*3);
    if (ran_number==0){
    document.write("<select name='proxy' size='12' onclick='showOpen(this.options[this.selectedIndex].value);'>");
    document.write("<option  value='http://www.sneakcentral.com'>sneakcentral.com&nbsp;(US,PHP)");
    document.write("<option  value='http://gomimmy.com/'>gomimmy.com&nbsp;(US,PHP)");
    document.write("<option  value='http://hiddenpenguin.info/'>hiddenpenguin.info&nbsp;(PHP)");
    document.write("</select>");
    }
    else if (ran_number==1){
    document.write("<select name='proxy' size='12' onclick='showOpen(this.options[this.selectedIndex].value);'>");
    document.write("<option  value='http://hiddenpenguin.info/'>hiddenpenguin.info&nbsp;(PHP)");
    document.write("<option  value='http://www.sneakcentral.com'>sneakcentral.com&nbsp;(US,PHP)");
    document.write("<option  value='http://gomimmy.com/'>gomimmy.com&nbsp;(US , PHP)");
    document.write("</select>");
    }
    else if (ran_number==2){
    document.write("<select name='proxy' size='12' onclick='showOpen(this.options[this.selectedIndex].value);'>");
    document.write("<option  value='http://gomimmy.com/'>gomimmy.com&nbsp;(US , PHP)");
    document.write("<option  value='http://hiddenpenguin.info/'>hiddenpenguin.info&nbsp;(PHP)");
    document.write("<option  value='http://www.sneakcentral.com'>sneakcentral.com&nbsp;(US,PHP)");
    document.write("</select>");
    }
    </script>
    Code (JavaScript):
    NOTE: Code copied directly from the page's source. Ask the author for permission before reusing it.
     
    dp-user-1, May 23, 2007 IP
    Hades likes this.
  3. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #3
    Thank you so much. +rep given.

    Do you know how to make it so that it's a bit larger in width? cause it looks small on my site.
     
    Hades, May 23, 2007 IP
  4. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Did you get permission to use it? If not, you're liable for copyright infringement.
     
    dp-user-1, May 23, 2007 IP
  5. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #5
    just read your edit. I didn't ask him, no. I wanted one like it, not exactly the same. I already viewed the source.
     
    Hades, May 23, 2007 IP
  6. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #6
    :p I assumed that you would have seen the "<script language="javascript">" part.

    Anyway, to make your script bigger you'd use CSS.
     
    dp-user-1, May 23, 2007 IP
  7. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #7
    lol..guess i did miss that..makes me seem like an idiot. Well, i looked at the source about a week ago. I just got around to asking about it, lol.
     
    Hades, May 23, 2007 IP
  8. Hades

    Hades Well-Known Member

    Messages:
    1,873
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #8
    Is there a way to do this using PHP or anything of that sort? I find this to be really hard, especially if i have to have lots of proxies in there, and have to add them quickly.
     
    Hades, May 25, 2007 IP