회원가입∴아이디/비번찾기
홈으로


마퀴태그 marquee 생성기
14년 전
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script Language="Javascript">
var myTextCode='';
var colorFlag='none';
var iam=true;
var isItOpen=0;
var winLink;

function setColor(inputc){
if (colorFlag=='font') {
  document.theform.fcfield.value=inputc;
}else if(colorFlag=='back'){
  document.theform.bgfield.value=inputc;
}else{
  document.theform.border_color.value=inputc;
}
colorFlag='none';
}

function colorWindow() {
if ((isItOpen=="0")||(isItOpen==0)){
  var colors=new String();
  winLink=window.open('about:blank','winID','height=200,width=400,top=100,left=100,location=no,menubar=no,resizable=yes,scrollbars=no,status=yes,toolbar=no');
  isItOpen=1;

  colors="<html><head><title>Color Selector v.2.2</title><script>if(!document.all){if(confirm('To use this application you need Internet Explorer 4.x or greater.\\nClick OK to exit')){window.close();}}\n";
  colors+="var all_str=new String('aliceblue;antiquewhite;aqua;aquamarine;azure;beige;bisque;black;blanchedalmond;blue;blueviolet;brown;burlywood;coral;crimson;cyan;darkblue;darkcyan;darkgoldenrod;darkgray;darkgreen;";
  colors+="darkkhaki;darkmagenta;darkolivegreen;darkorange;darkorchid;darkred;darksalmon;darkseagreen;darkslateblue;darkslategray;darkturquoise;darkviolet;deeppink;deepskyblue;dimgray;dodgerblue;firebrick;floralwhite;";
  colors+="forestgreen;fuchsia;gainsboro;ghostwhite;gold;goldenrod;gray;green;greenyellow;honeydew;hotpink;indianred;indigo;ivory;khaki;lavender;lavenderblush;lawngreen;lemonchiffon;lightblue;lightcoral;lightcyan;";
  colors+="lightgoldenrodyellow;lightgreen;lightpink;lightsalmon;lightseagreen;lightskyblue;lightslategray;lightsteelblue;lightyellow;lime;limegreen;linen;magenta;maroon;mediumaquamarine;mediumblue;mediumorchid;";
  colors+="mediumpurple;mediumseagreen;mediumslateblue;mediumspringgreen;mediumturquoise;mediumvioletred;midnightblue;mintcream;mistyrose;moccasin;navajowhite;navy;oldlace;olive;olivedrab;orange;orangered;orchid;";
  colors+="palegoldenrod;palegreen;paleturquoise;palevioletred;papayawhip;peachpuff;peru;pink;plum;powderblue;purple;red;rosybrown;royalblue;saddlebrown;seagreen;seashell;sienna;silver;skyblue;slateblue;slategray;";
  colors+="snow;springgreen;steelblue;tan;teal;thistle;tomato;turquoise;violet;wheat;white;whitesmoke;yellow;yellowgreen');\n";
  colors+="var safe_str = new String('aqua;black;blue;fuchsia;gray;green;lime;maroon;navy;olive;purple;red;silver;teal;white;yellow')\n";
  colors+="function preloader(){\n";
  colors+="if(!document.cookie){document.cookie='asel=all';writeOptions('a');document.all.colorstuff.bgColor='aliceblue';document.txtForm.areaSel[0].selected=true;\n";
  colors+="}else if(document.cookie.indexOf('asel=all') !=-1){writeOptions('a');document.all.colorstuff.bgColor='aliceblue';document.txtForm.areaSel[0].selected=true;\n";
  colors+="}else if(document.cookie.indexOf('asel=dark')!=-1){writeOptions('d');document.all.colorstuff.bgColor='darkblue';document.txtForm.areaSel[3].selected=true;\n";
  colors+="}else if(document.cookie.indexOf('asel=med')!=-1){writeOptions('m');document.all.colorstuff.bgColor='mediumaquamarine';document.txtForm.areaSel[2].selected=true;\n";
  colors+="}else if(document.cookie.indexOf('asel=light')!=-1){writeOptions('l');document.all.colorstuff.bgColor='lightblue';document.txtForm.areaSel[1].selected=true;\n";
  colors+="}else{writeOptions('s');document.all.colorstuff.bgColor='aqua';document.txtForm.areaSel[4].selected=true;}\n";
  colors+="}\n";
  colors+="function readOpener(){\n";
  colors+="document.all.colorstuff.bgColor=window.opener.document.theform.bgfield.value;\n";
  colors+="document.all.innerstuff.color=window.opener.document.theform.fcfield.value;\n";
  colors+="document.all.colorstuff.style.borderColor=window.opener.theform.border_color.value;\n";
  colors+="}\n";
  colors+="function writeOptions(cookieArea){\n";
  colors+="var counter = new Number(0);var arr;var opt_arr=new Array;var safe_arr = safe_str.split(';');var alla = all_str.split(';');var dark_arr = alla.slice(16,31);var light_arr = alla.slice(58,70);var med_arr = alla.slice(75,84);\n";
  colors+="if(cookieArea=='a'){arr=alla;}else if(cookieArea=='d'){arr=dark_arr;}else if(cookieArea=='l'){arr=light_arr;}else if(cookieArea=='m'){arr=med_arr;}else{arr=safe_arr;}\n";
  colors+="if(window.opener.colorFlag=='font'){\n";
  colors+="var mc=new Option('[current: '+window.opener.document.theform.fcfield.value+']',window.opener.document.theform.fcfield.value);document.txtForm.colorSel.options[0]=mc;\n";
  colors+="}else if(window.opener.colorFlag=='back'){";
  colors+="var mc=new Option('[current: '+window.opener.document.theform.bgfield.value+']',window.opener.document.theform.fcfield.value);document.txtForm.colorSel.options[0]=mc;\n";
  colors+="}else{";
  colors+="var mc=new Option('[current: '+window.opener.document.theform.border_color.value+']',window.opener.document.theform.border_color.value);document.txtForm.colorSel.options[0]=mc;\n";
  colors+="}\n";
  colors+="for (counter=1;counter!=arr.length;counter++) { opt_arr[counter] = new Option(arr[counter-1],arr[counter-1]);document.txtForm.colorSel.options[counter]=opt_arr[counter];}\n";
  colors+="}\n";
  colors+="function changeArea(){\n";
  colors+="var sArea=document.txtForm.areaSel[document.txtForm.areaSel.selectedIndex].value;if(sArea=='all'){\n";
  colors+="document.cookie='asel=all';}else if(sArea=='dark'){document.cookie='asel=dark';}else if(sArea=='light'){document.cookie='asel=light';}else if(sArea=='medium'){document.cookie='asel=med';}else{document.cookie='asel=safe';}history.go(0);\n";
  colors+="}\n";
  colors+="</scr"+"ipt>\n";
  colors+="</head><body bgcolor='white' text='navy' onload='preloader();readOpener()' onunload='window.opener.isItOpen=0'><table width='380' height='100' border='0' bgcolor='white'><tr><td bgcolor='#dddddd' colspan='2' width='100%'>";
  colors+="<font face='Tahoma,Arial,Verdana' size='4' color='navy'><center>color selector by<a href='mailto:fragmer@mail.ru?subject=WOW! How do you doo all this great stuff?!'>fr@gmer</a></center></font>\n";
  colors+="</td></tr><tr><td width='100' bgcolor='#eeeeee' align=center valign=center><font face='Terminal' size='4pt'>select color</font></td><td width='310'><form name='txtForm'><select name='areaSel' onchange='changeArea(\"txt\")'>\n";
  colors+="<option value='all'>all</option><option value='light'>light</option><option value='medium'>medium</option><option value='dark'>dark</option><option value='safe'>safe</option></select>\n";
  colors+="<select name='colorSel' onchange='if(window.opener.colorFlag==\"font\"){document.all.innerstuff.color=document.txtForm.colorSel[document.txtForm.colorSel.selectedIndex].value}else if(window.opener.colorFlag==\"back\"){document.all.colorstuff.bgColor=document.txtForm.colorSel";
  colors+="[document.txtForm.colorSel.selectedIndex].value;}else{document.all.colorstuff.style.borderColor=document.txtForm.colorSel[document.txtForm.colorSel.selectedIndex].value;}'></select>\n";
  colors+="<table border=1><tr><td id='colorstuff' style='height:25;width:175;border-width:2px;border-style:solid' align='center' valign='bottom'><font face='Tahoma,Arial,Verdana' id='innerstuff'><script>document.write(window.opener.theform.marqueetext.value.substr(0,22)+'...');</scr"+"ipt>";
  colors+="</font></td></tr></table><br><input type='button' value='Submit color' onclick='window.opener.isItOpen=0;if(window.opener.iam==true){";
  colors+="window.opener.setColor(document.txtForm.colorSel[document.txtForm.colorSel.selectedIndex].value);window.close();}'>  <input type='button' value='Cancel' onclick='window.opener.isItOpen=0;window.close()'></form></td></tr>\n";
  colors+="</table></body></html>\n";

  winLink.document.write(colors);
  winLink.preloader();
  winLink.readOpener();
  winLink.onunload="window.opener.isItOpen=0";
  }
return true;
}

function insertMarquee() {
var marquee_txt='your scrolling text goes here';
var mWidth='';
var mHeight='';
var mRepeat='';
var mDelay='';
var mAmount='';
var mBehaviour='';
var mDirection='';
var mAlign='';
var mBgColor='bgcolor=\"beige\" ';
var mFnColor='color: \"darkorchid\"; '

  if (document.theform.marqueetext.value !=''){
        var marquee_txt=document.theform.marqueetext.value;}
  if (document.theform.dir_radio[1].checked){
        var mDirection='direction=\"right\"';}
  var mDelay='scrolldelay=\"' + document.theform.speed_delay.options[document.theform.speed_delay.selectedIndex].value + '\"';
  var mAmount='scrollamount=\"' + document.theform.speed_amt.options[document.theform.speed_amt.selectedIndex].value + '\"';
//behaviour radio
  if (document.theform.behave_radio[0].checked){
        var mBehaviour='behavior=\"scroll\"';}
  if (document.theform.behave_radio[1].checked){
        var mBehaviour='behavior=\"slide\"';}
  if (document.theform.behave_radio[2].checked){
        var mBehaviour='behavior=\"alternate\"';}
//align radio
  if (document.theform.align_radio[0].checked){
        var mAlign='align=\"middle\"';}
  if (document.theform.align_radio[1].checked){
        var mAlign='align=\"bottom\"';}
  if (document.theform.align_radio[2].checked){
        var mAlign='align=\"top\"';}
//size
        if (document.theform.wid_radio[0].checked){
         var mWidth=document.theform.swidth.value;}
        else {
           var mWidth=document.theform.swidth.value + '%';}
//height
        if (document.theform.hgt_radio[0].checked){
         var mHeight='height=\"' + document.theform.sheight.value +'\"';}
        else {
           var mHeight='height=\"' + document.theform.sheight.value+'%\"';}
//repeat
  if (document.theform.repeat_check.checked){
     var mRepeat='';}
        else {
        if (document.theform.repeat_time.value != ''){
          var mRepeat='loop=\"' + document.theform.repeat_time.value + '\"';}
          else {
             var mRepeat='loop=\"1\"';}
  }
//background color
   var mBgColor='bgcolor="' + document.theform.bgfield.value + '"';
//font color
   var mFnColor='color: ' + document.theform.fcfield.value + '; ';
//font
  var mtFont = document.theform.fontselect.options[document.theform.fontselect.selectedIndex].value;
  if (mtFont != ""){
        var mFont = ' style=\"font-family: ' + mtFont + '; ' ;
        }else{
var mFont = ' style=\"' ;
  }


  var bStyle="";
  var endDiv="";
  if (document.theform.border_check.checked){
        endDiv="</div>\n";
        bStyle+='<div style="width:'+mWidth+';padding:0;margin:0;border-style:'+document.theform.border_styler.options[document.theform.border_styler.selectedIndex].value+';border-width:';
        if(document.theform.border_width.value!=""){
            bStyle+=document.theform.border_width.value;}
        else{bStyle+="1";}
        bStyle+=';border-color:'+document.theform.border_color.value+';">';
        mWidth="100%";
  }

  var myTextCode='\n'+bStyle+'\n<MARQUEE '+mBgColor+' border=\"0\" '+mAlign+' '+mAmount+' '+mDirection+' '+mDelay+' '+mBehaviour+' '+mAlign;
  myTextCode+=' '+mRepeat+' width=\"'+mWidth+'\" '+mHeight+mFont+mFnColor+'font-size: '+document.theform.fontsize.options[document.theform.fontsize.selectedIndex].value;
  myTextCode+='\">\n'+marquee_txt+'\n</MARQUEE>\n'+endDiv;
return(myTextCode);
}

function createTheThing() {
        var ttw=insertMarquee();
        document.theform.bColorVar.value=document.theform.border_color.value;
        var rxp=/</g;var rxp2=/>/g;
        var xttw=ttw.replace(rxp,"<","gi");
        xttw=xttw.replace(rxp2,">");
        var thtw="<div style='border-color:black;border-width:1px;border-style:solid;padding:10px'>"+ttw+"<br><input type='button' value='< Back'";
        thtw+=" onclick='history.back()'></div><textarea style='width:75%;height:100px;font-family:courier new'>The source code is:\n----------------"+xttw+"</textarea>";
        document.write(thtw);
}
</script>
</head>
<body onunload="if((winLink)&&(winLink!=null)){winLink.close(); };">
<!--Here starts the formating part :)-->
<form action="#" name="theform">
<fieldset value="text" style="background-color:#eee;width:470px;padding:5">
<table width="810" border="0" height="317" cellpadding="2" style="font-family:verdana,tahoma;width:460px">
<tbody>
        <tr>
<td width="855" height="79"><div>                    <table border="0" cellpadding="2" style="font-family:verdana,tahoma;width:460px" width="100%">
                        <tr>
                            <td width="98" height="12">메세지</td>
                            <td colspan="4" height="12" width="743">

                                <p><textarea name="marqueetext" rows="6" cols="78"></textarea></p>
</td>
</tr>
                        <tr>
                            <td width="98" height="19">폰트</td>
                            <td nowrap="nowrap" width="289">          
<select name="fontselect">
                                    <option value="" selected="selected">Default Font</option>
                                    <option value="Arial, Helvetica, sans-serif">Arial, Helvetica, sans-serif</option>
                                    <option value="Times New Roman, Times, serif">Times New Roman, Times, serif</option>
                                    <option value="Courier New, Courier, mono">Courier New, Courier,mono</option>
                                    <option value="Georgia, Times New Roman, Times, serif">Georgia, Times New Roman, Times, serif</option>
                                    <option value="Verdana, Arial, Helvetica, sans-serif">Verdana, Arial, Helvetica, sans-serif</option>
</select>
</td>
                            <td nowrap="nowrap" colspan="3" width="448">          
폰트크기<select name="fontsize">
                                    <option value="10">1</option>
                                    <option value="12">2</option>
                                    <option value="14" selected="selected">3</option>
                                    <option value="16">4</option>
                                    <option value="18">5</option>
                                    <option value="20">6</option>
                                    <option value="22">7</option>
</select>
</td>
</tr>
                        <tr>
                            <td colspan="5" nowrap="nowrap" width="99%" height="33">          
<div>폰트색깔<input type="text" name="fcfield" maxlength="15" size="10" value="darkorchid">
<input name="fcolwin" type="button" value="more colors" onclick="colorFlag='font';colorWindow()">   글씨배경색
<input type="text" name="bgfield" maxlength="15" size="10" value="beige"><input name="colwin" type="button" value="more colors" onclick="colorFlag='back';colorWindow()">
</div>
</td>
</tr>
</table></div>
</td>
</tr>
<tr><td style="padding:0;padding-left:2" width="804">
</td></tr>

<tr>
<td height="250" style="padding:0;margin:0" width="521">          
<table border="0" cellpadding="2" width="859">
<tbody>
                    <tr>
                        <td width="851" height="100" colspan="4">                                            <table border="0" cellpadding="2" width="851">
                                <tr>
                                    <td width="10%">방향</td>
                                    <td colspan="2" width="92">속도</td>
                                    <td width="21%">형태<br>
</td>
                                    <td width="181">정렬</td>
</tr>
                                <tr>
                                    <td width="10%" height="15">
  <input type="radio" name="dir_radio" value="left" checked="checked">          
          왼쪽</td>
                                    <td width="5%" height="15">Delay</td>
                                    <td width="5%" height="15">                
<select name="speed_delay" size="1">
                                            <option value="50">50</option>
                                            <option value="60">60</option>
                                            <option value="70">70</option>
                                            <option value="80">80</option>
                                            <option value="90" selected>90</option>
                                            <option value="100">100</option>
                                            <option value="110">110</option>
                                            <option value="120">120</option>
                                            <option value="130">130</option>
                                            <option value="140">140</option>
</select>
</td>
                                    <td height="15" width="181">
  <input type="radio" name="behave_radio" value="scroll" checked="checked">
               Scroll
</td>
                                    <td width="21%" nowrap="nowrap">
  <input type="radio" name="align_radio" value="middle" checked="checked">      
          Middle</td>
</tr>
                                <tr>
                                    <td width="10%" nowrap="nowrap">
  <input type="radio" name="dir_radio" value="right">
           오른쪽</td>
                                    <td width="5%">Amount</td>
                                    <td width="5%">                
<select name="speed_amt" size="1">
                                            <option value="1">1</option>
                                            <option value="2" selected="selected">2</option>
                                            <option value="3">3</option>
                                            <option value="4">4</option>
                                            <option value="5">5</option>
                                            <option value="6">6</option>
                                            <option value="7">7</option>
                                            <option value="8">8</option>
                                            <option value="9">9</option>
                                            <option value="10">10</option>
</select>
</td>
                                    <td width="181">
  <input type="radio" name="behave_radio" value="slide">
               Slide</td>
                                    <td width="181">
  <input type="radio" name="align_radio" value="bottom">
               Bottom</td>
</tr>
                                <tr>
                                    <td width="10%"> </td>
                                    <td width="5%"> </td>
                                    <td width="44"> </td>
                                    <td width="21%">
  <input type="radio" name="behave_radio" value="alternate">
               Alternate</td>
                                    <td width="181">
  <input type="radio" name="align_radio" value="top">
               Top</td>
</tr>
</table></td>
</tr>
<tr><td colspan="4" style="padding:0" width="855">
<hr noshade></td></tr>
<tr>
<td colspan="4" height="29" nowrap="nowrap" width="851">              

<b>Size</b></td>
</tr>
<tr>
                        <td nowrap="nowrap" width="81">
            
              
  
                            <p>가로크기</p>
                            <p><input type="text" name="swidth" size="5" maxlength="3" value="100">
</p>
</td>
                        <td nowrap="nowrap" width="81">
  <input type="radio" name="wid_radio" value="pixels">
               픽셀<br>
<input type="radio" name="wid_radio" value="percent" checked>
               퍼센트</td>
                        <td nowrap="nowrap" width="125">
    
                            <p>세로크기</p>
                            <p><input type="text" name="sheight" style="width:50px" maxlength="3" value="20" size="5">
</p>
</td>
                        <td nowrap="nowrap" width="546">
  <input type="radio" name="hgt_radio" value="pixels" checked>
               픽셀<br>
<input type="radio" name="hgt_radio" value="percent">
          퍼센트</td>
</tr>
<tr><td colspan="4" style="padding:0" width="855">
<hr noshade></td></tr>
<tr>
                        <td colspan="4" height="31" width="851">
반복<input type="checkbox" name="repeat_check" value="continuous" checked>
               Continuously          
<input type="text" name="repeat_time" size="4" maxlength="2" onfocus="document.theform.repeat_check.checked=false">
               번
</td>
</tr>
<tr><td colspan="4" style="padding:0" width="855">
<hr noshade></td></tr>
<tr>
<td colspan="4" height="29" nowrap="nowrap" width="851">              

<b>Border</b></td>
</tr>
<tr>
                        <td nowrap="nowrap" colspan="2" width="168">

                            <p><input type="checkbox" name="border_check" value="border_enabled" checked onclick="if(this.form.border_styler.disabled){this.form.border_styler.disabled=false;}else{this.form.border_styler.disabled=true;}">
테두리스타일</p>
                            <p>
<select name="border_styler" size="1">
                                <option value="solid" selected>Solid</option>
                                <option value="dotted">Dotted</option>
                                <option value="dashed">Dashed</option>
                                <option value="double">Double</option>
                                <option value="groove">Groove</option>
                                <option value="ridge">Ridge</option>
                                <option value="inset">Inset</option>
                                <option value="outset">Outset</option>
</select>
<br>
</p>
</td>
                        <td nowrap width="125">
두께<input type="text" name="border_width" style="width:50px" value=1 maxlength="3" size="5">
</td>
                        <td nowrap width="546">
테두리색깔<input type="text" style="width:1;height:1" name="bColorVar" value="darkred" size="8">
<input type="button" name="border_color" style="width:100px" onclick="colorFlag='bder';colorWindow()">
</tr>
</tbody>
</table>
<!--The Main Button-->
<input type="button" value="마퀴태그 생성" onclick="createTheThing()">
<input type="reset" value="기본값으로">
</td>
</tr>
</tbody>
</table>
</fieldset>
</form>
<br>
</body>
<script>
setTimeout("document.theform.border_color.value=document.theform.bColorVar.value",100);
</script>
</html>
추천추천 : 652 추천 목록
번호 제목
2,891
입력 필드에서 특정단어(예:#err)가 포함되었을 때 실시간 감지 및 경고창 띄우기
2,890
데이터베이스 최적화와 쿼리 효율성을 높이 검색 성능을 개선하는 방법
2,889
간단한 게시판 만들기
2,888
PHP의 php.ini 파일에서 설정할 수 있는 주요 항목들을 카테고리별로 정리
2,887
유튜브 동영상의 썸네일 이미지를 체크하여 유효한 영상이아닐때 연결된 체크박스를 자동으로 체크
2,886
이미지 URL이 유효하지 않을 때, 해당 이미지와 연결된 체크박스를 자동으로 체크
2,885
HTTPS로 접속한 사용자를 강제로 HTTP로 리디렉션 하려면
2,884
PHP에서 MP3 파일을 직접 읽고 스트리밍 하기
2,883
현재 페이지가 location.reload()에 의해 새로고침되었는지
2,882
텍스트 파일을 읽고, 각 줄의 끝에서 6글자를 삭제한 후, 결과를 새로운 파일에 저장합니다.
2,881
cURL을 사용하여 리다이렉트를 따라가 최종 URL 가져오기
2,880
[PHP] $_SERVER 환경변수
2,879
10진수 <-> 16진수 변환기 PHP소스
2,878
텍스트에 직접 그라데이션 색상을 적용하려면?
2,877
CSS를 사용하여 요소의 내용물에 따라 width를 조정하는 방법
2,876
웹서버 ip 확인
2,875
웹호스팅의 절대경로를 확인
2,874
input 입력 필드 앞뒤 공백 실시간 제거
2,873
Placeholder 포커스시 감추기
2,872
MySQL 중복된 데이터를 삭제
2,871
MySQL 중복 데이터 확인
2,870
sessionStorage.getItem 와 sessionStorage.setItem
2,869
제이쿼리 랜덤으로 배경색 변경
2,868
preg match에 관한 정규식
2,867
Stream an audio file with MediaPlayer 오디오 파일 스트리밍 하기
2,866
Audio Streaming PHP Code
2,865
PHP $ SERVER 환경 변수 정리
2,864
Vimeo (비메오) API 를 사용하여 플레이어 컨트롤하기
2,863
iframe 사용시 하단에 발생하는 공백 제거방법
2,862
아이프레임(iframe) 전체화면 가능하게 하기
목록
뮤직트로트 부산광역시 부산진구 가야동 ㅣ 개인정보취급방침ㅣ모바일버전
Copyright ⓒ musictrot All rights reserved.