How to get this effect...

Discussion in 'Programming' started by Clockwork Joe, Aug 3, 2013.

  1. #1
    The alternating/rotating sentences at the top of the page. Is there a word for this. I'm just looking for a way implement a more basic version of this on my site. What sort of script is used? Jquery, javascript? I have no idea.

    http://www.aardvarkbrigade.com/
     
    Clockwork Joe, Aug 3, 2013 IP
  2. Ricardooo

    Ricardooo Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    Hello,

    I think this can do the trick,
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
    </script>
    <script>
    $(document).ready(function(){
     
        $("#div3").fadeOut(3000); // to "div3" fade out in 3000ms
        $("#div2").fadeIn(6000); // to "div2" fade IN in 6000ms NEED "display:none;" ON STYLE
     
    });
    </script>
     
    <div id="div3" style="padding:5px;">TEXT GOING OFF</div>
    <div id="div2" style="padding:5px;display:none;">TEXT COMING</div>
     
    
    PHP:
     
    Ricardooo, Aug 3, 2013 IP