//Roterar texten i "prislapparna" $(document).ready(function () { var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/; if (IE6 == false) { $(".prisholder").each(function() { var thisid = $(this).attr("id"); var hldr = $(this); var text = $(this).html(); var texts = []; temp = "
"; texts = text.split("/"); $(this).html(""); //alert(texts.length); //if(texts.length > 1) //{ var R = Raphael(thisid, 83, 96); var printed = 0; jQuery.each(jQuery.browser, function(i) { if (printed == 0) { if($.browser.msie) { txt1 = R.text(38,45, texts[0]).attr({fill: "white", "font-size": 10, rotation: 339, "font-weight": "bold"}); if(texts.length > 1) { txt2 = R.text(42,57, "/" + texts[1]).attr({fill: "white", "font-size": 10, rotation: 339, "font-weight": "bold"}); } } else { temptxt1 = R.print(7, 40, texts[0], R.getFont("Arial"), 10).attr({fill: "#fff"}); temptxt1.rotate(339, 40, 10); if(texts.length > 1) { temptxt2 = R.print(12, 57, "/" + texts[1], R.getFont("Arial"), 10).attr({fill: "#fff"}); temptxt2.rotate(339, 30, 10); } } printed = 1; } return true; }); //} }); } });