SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Aug 2009
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Flashing text safari bug

    Hi - I found a cool piece of jquery code that allows for flashing text.

    Code:
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.1.min.js"></script>
    <div id="msg" style="color: #000;">flashing text</div>
    <script type="text/javascript" />
    function blink(selector){
    $(selector).fadeOut('slow', function(){
    	$(this).fadeIn('slow', function(){
    		blink(this);
    	});
    });
    }
    
    blink('#msg');
    </script>
    It works in IE7, IE8, IE9, Chrome and FireFox - but the issue I am having is it does not work in Safari.

    All it does is just show the javascript code as text within Safari.

    If anyone has any insight on this that would be much appreciated.

    Thanks,

    Paul

  2. #2
    Forums Designer
    Join Date
    Jun 2004
    Posts
    422
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <script type="text/javascript" />

    Notice / before >

  3. #3
    SitePoint Addict
    Join Date
    Aug 2009
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Duhh - haha thanks dude.

    Good spot


Bookmarks

Posting Permissions

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