Activity Stream
48,167 MEMBERS
6642 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 6 of 6
  1.     
    #1
    Member
    Website's:
    maxneeds.info

    Default [JS]Turn back content after changing it.

    I used google but didn't find a solution for this one.

    Let say i have :

    <div id=bla onclick=this.innerHTML='new content'>old content</div>

    After the 'bla' is clicked this one must turn back it to 'old content':

    <a onclick=??? href=javascript:>Back it</a>

    Hope it is fixable .. tnx
    Porsche_maniak Reviewed by Porsche_maniak on . [JS]Turn back content after changing it. I used google but didn't find a solution for this one. Let say i have : <div id=bla onclick=this.innerHTML='new content'>old content</div> After the 'bla' is clicked this one must turn back it to 'old content': <a onclick=??? href=javascript:>Back it</a> Rating: 5

  2.   Sponsored Links

  3.     
    #2
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    Just create 2 different divs, make 1 with cssisplay:none and switch between them
    I can always be contacted by sending a tweet @twilightws

  4.     
    #3
    Member
    Website's:
    maxneeds.info
    Any other suggestions ?
    I tried Whoo one but doesn't work.

  5.     
    #4
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    Code: 
    <div id="div1">
      <p>Content1</p>
    </div>
    <div id="div2" style="display:none;">
      <p>Content2</p>
    </div>
    <a href="#" onclick="document.getElementById('div2').style.display = 'block;'>Click me</a>
    That works lol, I never suggest something that wouldn't work
    I can always be contacted by sending a tweet @twilightws

  6.     
    #5
    Member
    Website's:
    maxneeds.info
    That works but the idea is not this

  7.     
    #6
    Member
    Website's:
    maxneeds.info
    Ok then...
    Here is the thing i want to do actually.

    Posted by someone (onclick the bellow replaces it)
    Send PM to someone ?
    Yes No

    if No is clicked it must return back to 'Posted by someone'
    if Yes is clicked it must go to other url.

    So i am having problem with the No .
    How to back the content to 'Posted by someone' ???

    The code i am using :
    PHP Code: 
    echo '<div id=divboss onclick="this.innerHTML=\'Send PM to '.$entry_array'createdby' ][ 'name'].' ?<br /><a href=pm.php?send='.urlencode($entry_array'createdby' ][ 'name']).'>Yes</a> &nbsp &nbsp <a onclick=? href=javascript:>No</a>\';>'.$entry_array'createdby' ][ 'text'].'</div>'

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 25th Feb 2014, 12:02 PM
  2. [Selling] Content Writer & Content Spinner Services (Review Copies Available)
    By Elliot C in forum Completed Transactions
    Replies: 6
    Last Post: 12th Mar 2012, 10:22 AM
  3. What server accepts adult content (legal content)?
    By ukraniu in forum File Host Discussion
    Replies: 10
    Last Post: 27th Sep 2011, 02:00 PM
  4. Replies: 7
    Last Post: 19th Apr 2011, 07:37 PM

Tags for this Thread

BE SOCIAL