Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Lfe
    Lfe is offline
    New Coder
    Join Date
    Dec 2006
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need this script edited

    Code:
    <script type="text/javascript">
    function iconUser(username,image){
    var link = document.getElementsByTagName('a');
    for(a=0;a<link.length;a++){
    if(link[a].href.match(/showuser=\d+/) && !link[a].parentNode.nodeName.match(/^STRONG$/i) && link[a].innerHTML.match(new RegExp('^'+username+'$','i'))){
    var icon = document.createElement('img');
    icon.border = "0";
    icon.src = image;
    link[a].parentNode.insertBefore(icon,link[a]);
    }}}
    iconUser("Warden","http://img295.imageshack.us/img295/2990/rankseh4.gif");
    iconUser("Ctrl-Alt-Delete","http://img295.imageshack.us/img295/2990/rankseh4.gif");
    iconUser("Drakel","http://209.85.48.9/8740/194/upload/p8049434.jpg");
    //-->
    </script>
    i want this code edited instead the icon will show's behind the username i want it so its will show's as front of username

  • #2
    Lfe
    Lfe is offline
    New Coder
    Join Date
    Dec 2006
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Bump bringign

  • #3
    Regular Coder
    Join Date
    Oct 2006
    Posts
    107
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Why don't you post more of the code so we don't have to work so hard.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Stop bumping. Its annoying and it only makes members not want to help you. Haven't you figured it out by now? The more you bump the less help you get.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Lfe
    Lfe is offline
    New Coder
    Join Date
    Dec 2006
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oh sorry i didnt knowed it

    but can you help me ?

  • #6
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    As Aerospace mentioned, please do not bump a thread repeatedly or start multiple threads on the same subject. Sometimes you may not get the help you want immediately, other times, perhaps not at all. That's how a forum works. You need to respect that. Please read Posting Guidelines here.

    Closing this thread, so all discussions just go to this dup: http://codingforums.com/showthread.php?t=102104
    - George
    - JavaScript Kit- JavaScript tutorials and 400+ scripts!
    - JavaScript Reference- JavaScript reference you can relate to.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •