Java in IE 8, 7

Discussion in 'PHP' started by Guffi, 1 Feb 2011.

  1. Guffi

    Guffi New Member

    Joined:
    6 Mar 2010
    Messages:
    14
    Likes Received:
    0
    Reputations:
    0
    Привет всем. Есть маленькая проблемка нужно решить.
    В общем делал скрипт для сайта он на WP, скрипт на jquery. Во всех браузерах всё работает на отлично. Но IE 8 даже не загружает эти скрипты. В чём проблема может быть?
    Вот код:
    HTML:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=utf-8; ?>" />
    HTML:
    <script type="application/javascript" src="адрес/js/jquery-1.4.2.js" ></script>
    <script type="application/javascript" src="адрес/js/script.js" ></script>
    И код javascript:
    Code:
    
    $(document).ready(function()
    {  
       $('a#btn').bind('click', img_replace)
       }
    );
    
    function img_replace() {
    	var clas;
    	var buf = new Array(2);
    	var class_img;
    	var name_img;
    	var buffer;
    	clas = $(this).attr('class');
    	
    	buf = clas.split('_');
    	if (buf[0] != "type") {
    		var path = $("#box").attr('class'); 
    		class_img = "img."+buf[0];
    		name_img = buf[1];
    		$(class_img).attr("src", "адрес/images/chairs/"+path+"/"+buf[0]+"/"+name_img+".png");
    	}
    	if (buf[0] == "type") {
    		clas = $(this).attr('title');
    		class_img = "p" + "." + buf[0];
    		buffer = "Тип кресла: " + clas;
    		$(class_img).attr("textContent",buffer);
    	};
    	if (buf[0] == "top") {
    		clas = $(this).attr('title');
    		class_img = "p" + "." + buf[0];
    		buffer = "Цвет кресла: " + clas;
    		$(class_img).attr("textContent",buffer);
    	};
    	if (buf[0] == "base") {
    		clas = $(this).attr('title');
    		class_img = "p" + "." + buf[0];
    		buffer = "Цвет основы: " + clas;
    		$(class_img).attr("textContent",buffer);
    	};
    	if (buf[0] == "insert") {
    		clas = $(this).attr('title');
    		class_img = "p" + "." + buf[0];
    		buffer = "Цвет вставки: " + clas;
    		$(class_img).attr("textContent",buffer);
    	};
    		if (buf[0] == "bowl") {
    		clas = $(this).attr('title');
    		class_img = "p" + "." + buf[0];
    		buffer = "Цвет чашки: " + clas;
    		$(class_img).attr("textContent",buffer);
    	};
    }
    
     
  2. LStr1ke

    LStr1ke Elder - Старейшина

    Joined:
    29 Jul 2009
    Messages:
    801
    Likes Received:
    145
    Reputations:
    73
    <script type="application/javascript"

    <script type="text/javascript"
     
    1 person likes this.
  3. Guffi

    Guffi New Member

    Joined:
    6 Mar 2010
    Messages:
    14
    Likes Received:
    0
    Reputations:
    0
    спасибо тебе=)