I need help with IM ad code

Discussion in 'JavaScript' started by crnidario, Mar 5, 2014.

  1. #1
    function closebar(){
    document.cookie="remainclosed=1";
    document.getElementById("topbar").style.visibility="hidden";
    }
    Code (markup):
    This is HTML code:
    
    <a href="" onClick="closebar(); return false">Close [x]</a>
    
    Code (markup):
    but when I click on that link it hide IM ad and show it again. Can anyone help me with this? Also need help to minimize code.
     
    crnidario, Mar 5, 2014 IP
  2. loop

    loop Active Member

    Messages:
    519
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    90
    #2
    try:
    <a href="javacript:closebar();">Close [x]</a>

    send me code in PM and I will minimize it.
     
    loop, Mar 5, 2014 IP
  3. loop

    loop Active Member

    Messages:
    519
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    90
    #3
    sorry it's:

    <a href="javascript:closebar();">Close [x]</a>
     
    loop, Mar 5, 2014 IP