Sorry. This page is Japanese only.

Color Arrangementor VBScript版について


  1. バージョン

     1.00


  2. 更新年月日

     1998/03/12


  3. 種別

     フリー (無料)


  4. 説明




  5. 動作確認したブラウザ

     Internet Explorer 4.01


  6. 動作例

     ここをクリックして下さい。


  7. 詳細な説明

    1.  このスクリプトは、フレーム部分とスクリプト本体の部分と、2つのファイルで構成されています。フレーム部分にはスクリプトは書かれていません。
    2.  フレームの左側にスクリプトが仕込んであります。実際の動作は、動作例を参照して下さい。
    3.  スクリプトだけでは動きません。Submitボタン、テキストの所にもNAMEを設定して下さい。
    4.  ボタンを押すことによって配色が変化します。配色の状態は、テキストフィールドに表示されます。このままたぐの<〜 color="#??????">に使用することも可能です。



HTMLソース・スクリプトの本文

スクリプト部分
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- スクリプト部分のHTML・File name:cl_vbs_side.html --> <html> <head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Shift_JIS"> <title>ステータスメッセージVBScript</title> <script language="VBScript"><!-- 'Color Arrangementor・VBScript版 Ver.1.00 'by Yuichiro Saito <http://www2.airnet.ne.jp/y-saito/> 'Created: Mar. 12. 1998 '自由に書き換えてかまいませんが、著作権表示は必ず残して下さい '初期設定 top.view_w.document.bgcolor = vbblack '配色関係 dim red_v, grn_v, blue_v red_v = 0 grn_v = 0 blue_v = 0 '固定されるべき数 dim shift_v shift_v = 15 '一度に増えたり減ったりする大きさを指定します private sub red_u_onclick red_v = red_v + shift_v call print_text end sub private sub red_d_onclick red_v = red_v - shift_v call print_text end sub private sub grn_u_onclick grn_v = grn_v + shift_v call print_text end sub private sub grn_d_onclick grn_v = grn_v - shift_v call print_text end sub private sub blue_u_onclick blue_v = blue_v + shift_v call print_text end sub private sub blue_d_onclick blue_v = blue_v - shift_v call print_text end sub private sub print_text red_v = valchk(red_v) grn_v = valchk(grn_v) blue_v = valchk(blue_v) '右ウィンドウにサンプルを写します p_value.value = "#" & cl_hex(red_v) & cl_hex(grn_v) & cl_hex(blue_v) 'テキストの部分に値を出します top.view_w.document.bgcolor = rgb(blue_v, grn_v, red_v) end sub private function cl_hex(hex_v) '16進数表示を処理します if hex_v > 16 then cl_hex = hex(hex_v) else cl_hex = "0" & hex(hex_v) end if end function private function valchk(c_val) 'オーバーフローを押さえます if c_val => 0 and c_val =< 255 then valchk = c_val elseif c_val > 256 then valchk = 255 else valchk = 0 end if end function --></script> <meta property="fb:admins" content="624159971" > <meta property="fb:app_id" content="162951600471425" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!--#config timefmt="%Y/%m/%d"--> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-752050-1', 'koemu.com'); ga('send', 'pageview'); </script> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-8W2FT1HVEN"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-8W2FT1HVEN'); </script> </head> <!--基本設定--> <body bgcolor="#FFFFD0"> <basefont size="3"> <!--基本設定終わり--> <h4>Color Arrangementor<br>VBScript版</h4> <br><br> <table border="1" width="100%"> <tr> <th nowrap>今の値:<input type="text" name="p_value" value="#000000" size="10"><br> <br><input type="submit" name="red_u" value="赤を強く">   <input type="submit" name="red_d" value="赤を弱く"> <br><input type="submit" name="grn_u" value="緑を強く">   <input type="submit" name="grn_d" value="緑を弱く"> <br><input type="submit" name="blue_u" value="青を強く">   <input type="submit" name="blue_d" value="青を弱く"> </th> </tr> </table> </body> </html>



フレーム部分
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Shift_JIS"> <title>Color Arrangementor ・ VBScript版サンプル</title> <meta property="fb:admins" content="624159971" > <meta property="fb:app_id" content="162951600471425" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!--#config timefmt="%Y/%m/%d"--> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-752050-1', 'koemu.com'); ga('send', 'pageview'); </script> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-8W2FT1HVEN"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-8W2FT1HVEN'); </script> </head> <frameset border="1" COLS="250,*"> <frame name="ui_w" src="cl_vbs_side.html"> <frame name="view_w"> </frameset> <noframes> <body> <center> <b>フレーム未対応&amp;IE4.0ではありません。。 <br>あなたのブラウザではこのフォームは使えません。<a href="/">ここをクリックして下さい</a>。 </center> </body> </noframes> </html>



[color_arrangementor.html 1998年03月12日更新]


 | トップページ  | もくじ  |
Copyright© 1997-2022 Yuichiro SAITO All rights reserved.
転載・リンクされる場合は、事前に「このサイトの説明」をご覧ください。