You did not select any posts to which the action you picked can be applied.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gomjaba
    Senior Member
    • Jan 2005
    • 970
    • 3.5.x

    You did not select any posts to which the action you picked can be applied.

    I am using on my forum a function to expand / collapse some information relatated to some games ...

    Anyway, not clicked, it looks like that :



    When clicked :



    I am using this code :
    Code:
    <div class="smallfont" style="margin-bottom:2px"><b>Arcade:</b>
    <input type="button" value="Show Highscore" style="width:93px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide Highscore'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show Highscore'; }">
    </div> 
    <div class="alt2" >
    
    <div style="display: none;">
    $post[crowns]$post[champtext]
    </div>
    </div>
    </div>
    My problem : I would like to change the button to use a .gif instead of a grey standard button, however, when I am using

    Code:
    <INPUT type = "image" src ="gif file"
    instead, I can see the effect for just a split second and then I get the error :



    Does someone has ANY ideas whats going on
    I'm not under the alkafluence of inkahol like some thinkle peep I am!
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    I would think that would work just by changing the type and src as you did. I don't know why that wouldn't work.

    If you are still having the problem then you might try posting on www.vbulletin.org.

    Comment

    • Mike Sullivan
      Former vBulletin Developer
      • Apr 2000
      • 13327
      • 3.6.x

      #3
      You need to return false at the end of your onclick event. You're submitting the inline moderation form otherwise.

      Personally, I wouldn't even use an image-type input. Just use an <img> tag with an onclick attribute.

      Comment

      Related Topics

      Collapse

      Working...