Wrong code?

Discussion in 'jQuery' started by killer12345, Feb 22, 2011.

  1. #1
    Hey, can anyone tell me if there is something wrong with this code?
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">   
      var mraza = jQuery.noConflict();   
    </script>  
    <script type="text/javascript" src="test.js"></script>
    
    PHP:

     
    Last edited: Feb 22, 2011
    killer12345, Feb 22, 2011 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Works fine. What is the problem?

    
    <html>
    <head>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">  
    var mraza = jQuery.noConflict();  
    </script>  
    <script type="text/javascript">
    function hideText() {
    	mraza("p").hide();
    }
    </script>
    </head>
    <body>
    <p>This is a line of text</p>
    <button onclick="hideText()">Hide text</button>
    </body>
    </head>
    
    Code (markup):
     
    Cash Nebula, Feb 23, 2011 IP
  3. killer12345

    killer12345 Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Maybe in this code?
    http://pastebin.com/5EgxG4yN
    Works fine in firefox and chrome, but in IE it messes up the links.

    Firefox and chrome:
    [​IMG]

    IE:
    [​IMG]
     
    killer12345, Feb 23, 2011 IP
  4. killer12345

    killer12345 Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No one knows?
     
    killer12345, Feb 25, 2011 IP