忍者ブログ
2024 . 05
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • IE9 で高性能エディタが動きません。 HOME SyntaxHighlighter ビルドユニット
    アクセス解析
    ×

    [PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

    IE9 で高性能エディタが動きません。 HOME SyntaxHighlighter ビルドユニット
     
    動きました。ここは、ややこしいイベントを使って無いせいかもしれません。
    でも、YUI って相当テストされていませんね。Blogger でもダメだったし、
    Seesaa、JUGEM、livedoor が全滅です。CSS にかなり問題あるようです。
    
    関連する記事
    
    google.load + YUI Loader で、カラーピッカーを設置
    
    <script type="text/javascript" src="http://www.google.com/jsapi" charset="utf-8"></script>
    <script type="text/javascript">
    google.load("yui", "2.8.2");
    </script>
    <script type="text/javascript">
    new YAHOO.util.YUILoader({
    	require: ['colorpicker','fonts'],
    	loadOptional: true,
    	onSuccess: function() {
    		var Event = YAHOO.util.Event;
    		Event.onDOMReady(function() {
    			picker = new YAHOO.widget.ColorPicker("color_picker", {
    				showhsvcontrols: true,
    				showhexcontrols: true,
    					images: {
    						PICKER_THUMB: "http://developer.yahoo.com/yui/examples/colorpicker/assets/picker_thumb.png",
    						HUE_THUMB: "http://developer.yahoo.com/yui/examples/colorpicker/assets/hue_thumb.png"
    					}
    				});
    	
    				picker.on("rgbChange", function(o){
    						picker.chgValue = o; 
    					}
    				);
    				picker.on("available", function(o){
    						// 初期編集不可
    						document.getElementById(picker.ID.HEX).setAttribute("readonly","true") 
    						document.getElementById(picker.ID.R).setAttribute("readonly","true") 
    						document.getElementById(picker.ID.G).setAttribute("readonly","true") 
    						document.getElementById(picker.ID.B).setAttribute("readonly","true") 
    						document.getElementById(picker.ID.H).setAttribute("readonly","true") 
    						document.getElementById(picker.ID.S).setAttribute("readonly","true") 
    						document.getElementById(picker.ID.V).setAttribute("readonly","true") 
    						picker.chgValue = {};
    						picker.chgValue.newValue = [255, 255, 255];
    						picker.chgValue.prevValue= [255, 255, 255];
    					}
    				);
    	
    				Event.on("reset", "click", function(e) {
    					picker.setValue([255, 255, 255], false);
    				});
    	
    				Event.on("gethex1", "click", function(e) {
    					alert(picker.get("hex")); 
    				});
    				Event.on("gethex2", "click", function(e) {
    					alert(document.getElementById(picker.ID.HEX).value); 
    				});
    				Event.on("gethex3", "click", function(e) {
    					alert(picker.chgValue.newValue + " : " + picker.chgValue.prevValue); 
    				});
    		});
    	}
    }).insert();
    </script>
    
    <div class="yui-skin-sam" style='padding:10px;background-color: #eeeeee;width: 420px; height:220px;'>
    <div id="color_picker" style='position: relative;'></div>
    </div>
    
    <input type="button" id="reset" value="初期値">
    <input type="button" id="gethex1" value="RGB表示(1)">
    <input type="button" id="gethex2" value="RGB表示(2)">
    <input type="button" id="gethex3" value="RGB表示(3)">
    
    
    
    
    
    PR
    ■ この記事にコメントする
    お名前
    タイトル
    文字色
    URL
    コメント
    パスワード
    Vodafone絵文字 i-mode絵文字 Ezweb絵文字
    ■ コメント一覧
    IE9 で高性能エディタが動きません。 HOME SyntaxHighlighter ビルドユニット
    IE9 で高性能エディタが動きません。 HOME SyntaxHighlighter ビルドユニット
    Copyright © トリック・リポーター All Rights Reserved
    Powered by ニンジャブログ  Designed by ピンキー・ローン・ピッグ
    忍者ブログ / [PR]