홈으로 | 무료회원가입 | 아이디/비번찾기
추천음악방송 메인홈 1대1상담
운.영.자.1대1.상담
온라이브 음악방송
음악방송 앱 다운로드
OKTROT(무료음악채널)
뽕짝아가씨(무료음악채널)
아리랑가요(무료음악채널)
전통가요(무료음악채널)
보안∵서버∵쿠키
윈도우∵프레임
이미지∵배경
시간∵달력∵계산
상태바∵타이틀바
음악∵영상
폼∵전송∵테이블
키보드∵마우스
효과∵링크∵메뉴
Script∵php
기타
PHP 강좌
윈도우관련팁
웹관련팁
홈페이지제작팁
기본강좌
레지스트리
윈도우서버
리눅스서버
Android
팝업 생성기 2
13년 전
Function Name
Popup Name
Location of Window

In Front

In Back

Dimensions  

Popup Size
Width
Height

FullScreen

Position 

Specify
Top
Left

Center

Random

Options

Location Bar
Directories
Menu Bar
Tool Bar
Status Bar
Resizable
Scrollbar
Dependant

URL of Window:

Select Window Trigger:

Standard Link

Form Button

When Page Loads

When Page Unloads
Days to Repeat Popup: Hint: enter '0' to popup every visit. Enter '999' to popup once for each visitor.

Step 1: HEAD에 삽입하세요..

Control-C를 눌러서 카피한 후 페이지에 복사하세요..

Step 2: 본문에 링크할 위치에 삽입하세요..

Control-C를 눌러서 카피한 후 페이지에 복사하세요..

 


<script language="javascript">
var posval,infocus,settings,mywidth,myheight,mytop,myleft,mylink;

var loc,toolb,statusb,menub,direc,scrollb,resiz,depend;
var mstr='';

settings='';

function checkvalue(mycontrol)
{
if(isNaN(mycontrol.value)!=false)
{
alert('The value of this field ( '+mycontrol.name+' ) needs to be a number.');
mycontrol.focus();
mycontrol.select();
}
}

function GenerateCode()
{
document.frm.gencode.enabled=false;
var BadChars=new Array
(
" ",
"'",
"!",
"@",
"#",
"$",
"%",
"^",
"&",
"*",
"(",
")",
"-",
"=",
"+",
"|",
"[",
"]",
"{",
"}",
"]",
";",
":",
",",
"<",
".",
">",
"/",
"?");
var functionname=document.frm.txtFunctionname.value;
var popupname=document.frm.txtPopupname.value;
if(document.frm.txtFunctionname.value=='')
{
alert("Please enter a Function Name of atleast one character");
document.frm.txtFunctionname.focus();
return
}

for(var i=0;i<BadChars.length;i++)
{
if(functionname.indexOf(BadChars[i])!=-1)
{
alert('The function name can NOT have a " '+BadChars[i]+' " in it.');
document.frm.txtFunctionname.value="";
document.frm.txtFunctionname.focus();
return;
}
}

if(document.frm.txtPopupname.value=='')
{
alert("Please enter a Popup Name of atleast one character");
document.frm.txtPopupname.focus();
return
}

for(var i=0;i<BadChars.length;i++)
{
if(popupname.indexOf(BadChars[i])!=-1)
{
alert('The Popup name can NOT have a " '+BadChars[i]+' " in it.');
document.frm.txtPopupname.value="";
document.frm.txtPopupname.focus();
return;
}
}

if(document.frm.rdFocus[0].checked)
{
infocus='front';
}
else
{
infocus='back';
}

if(infocus=='front')
{
var winfocus="win.focus();"
var mywinfocus='';
}
else
{
var winfocus="win.blur();";
var mywinfocus="return false \" onFocus= \"this.blur();\"";
}

mywidth=document.frm.txtWidth.value;
myheight=document.frm.txtHeight.value;
mytop=document.frm.txtTop.value;
myleft=document.frm.txtLeft.value;

posval='custom';
if(document.frm.rdwindow[0].checked){posval='fullscreen';}
if(document.frm.rdwindow[1].checked){posval='center';}
if(document.frm.rdwindow[2].checked){posval='random';}

if(document.frm.rdlink[0].checked){mylink='standard';}
if(document.frm.rdlink[1].checked){mylink='formbutton';}
if(document.frm.rdlink[2].checked){mylink='formload';}
if(document.frm.rdlink[3].checked){mylink='formunload';}


loc=(document.frm.chkLocation.checked)?'yes':'no';
toolb=(document.frm.chkToolbar.checked)?'yes':'no';
statusb=(document.frm.chkStatusbar.checked)?'yes':'no';
menub=(document.frm.chkMenubar.checked)?'yes':'no';
direc=(document.frm.chkDirectories.checked)?'yes':'no';
scrollb=(document.frm.chkScrollbar.checked)?'yes':'no';
resiz=(document.frm.chkResizable.checked)?'yes':'no';
depend=(document.frm.chkDependant.checked)?'yes':'no';

if(posval=='fullscreen')
{
settings='fullscreen';
}
else
{
if(posval=='center')
{
myleft=(screen.width-mywidth)/2;
mytop=(screen.height-myheight)/2;
settings="width=" + mywidth + ",height=" + myheight + ",left=" + myleft + ",top=" + mytop + ",location=" + loc + ",toolbar=" + toolb + ",status=" + statusb + ",menubar=" + menub + ",directories=" + direc + ",scrollbars=" + scrollb + ",resizable=" + resiz + ",dependent=" + depend + "'";

}
else
{
if(posval=='random')
{
myleft=(screen.width)?Math.floor(Math.random()*(screen.width-mywidth)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-myheight)-75)):100;
settings="width=" + mywidth + ",height=" + myheight + ",left=" + myleft + ",top=" + mytop + ",location=" + loc + ",toolbar=" + toolb + ",status=" + statusb + ",menubar=" + menub + ",directories=" + direc + ",scrollbars=" + scrollb + ",resizable=" + resiz + ",dependent=" + depend + "'";

}
else
{
settings="width=" + mywidth + ",height=" + myheight + ",left=" + myleft + ",top=" + mytop + ",location=" + loc + ",toolbar=" + toolb + ",status=" + statusb + ",menubar=" + menub + ",directories=" + direc + ",scrollbars=" + scrollb + ",resizable=" + resiz + ",dependent=" + depend + "'";

}
}
}

var htmltext="<SCRIPT LANGUAGE=\'JAVASCRIPT\' TYPE=\'TEXT/JAVASCRIPT\'>\n ";
htmltext=htmltext + "<!--\n";
htmltext=htmltext + "var win=null;\n";
htmltext=htmltext + "function NewWindow(mypage,myname,w,h,pos,infocus){\n";
if(document.frm.txtDaystoPopup.value > 0){
htmltext=htmltext + "if(GetCookie(\"sid\") == \"999\"){return;}\n";
htmltext=htmltext + "document.cookie=\"sid=999; Path=/; Expires= \" + getFuture("+document.frm.txtDaystoPopup.value+");\n";
}
htmltext=htmltext + "if(pos==\"random\"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}\n";
htmltext=htmltext + "if(pos==\"center\"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}\n";
htmltext=htmltext + "else if((pos!=\'center\' && pos!=\"random\") || pos==null){myleft=0;mytop=20}\n";
htmltext=htmltext + "settings=\"width=\" + w + \",height=\" + h + \",top=\" + mytop + \",left=\" + myleft + \",scrollbars=" + scrollb + ",location=" + loc + ",directories=" + direc + ",status=" + statusb + ",menubar=" + menub + ",toolbar=" + toolb + ",resizable=" + resiz + "\";";
htmltext=htmltext + "win=window.open(mypage,myname,settings);\n";
htmltext=htmltext + winfocus + "}\n";
if(document.frm.txtDaystoPopup.value > 0){
htmltext=htmltext + "// Cookie functions borrowed from:\n";
htmltext=htmltext + "// Ronnie Moore: Visit him at http://www.ronniemoore.com";
htmltext=htmltext + "\nfunction getFuture(f){\n";
htmltext=htmltext + "var d = new Date();\n";
htmltext=htmltext + "d.setTime(d.getTime() + (86400000 * f));\n";
htmltext=htmltext + "return d;\n";
htmltext=htmltext + "}\n";
htmltext=htmltext + "\nfunction GetCookie (name) {\n";
htmltext=htmltext + "var arg = name + \"=\";\n";
htmltext=htmltext + "var alen = arg.length;\n";
htmltext=htmltext + "var clen = document.cookie.length;\n";
htmltext=htmltext + "var i = 0;\n";
htmltext=htmltext + "while (i < clen) {\n";
htmltext=htmltext + " var j = i + alen;\n";
htmltext=htmltext + " if (document.cookie.substring(i, j) == arg)\n";
htmltext=htmltext + " return getCookieVal (j);\n";
htmltext=htmltext + " i = document.cookie.indexOf(\" \", i) + 1;\n";
htmltext=htmltext + " if (i == 0) break; \n";
htmltext=htmltext + " }\n";
htmltext=htmltext + " return null;\n";
htmltext=htmltext + " }\n";
htmltext=htmltext + "\n";
htmltext=htmltext + "function getCookieVal (offset) {\n";
htmltext=htmltext + "var endstr = document.cookie.indexOf (\";\", offset);\n";
htmltext=htmltext + "if (endstr == -1)\n";
htmltext=htmltext + " endstr = document.cookie.length;\n";
htmltext=htmltext + " return unescape(document.cookie.substring(offset, endstr));\n";
htmltext=htmltext + "}\n";
}
htmltext=htmltext + "// -->\n";
htmltext=htmltext + "<" + "/scr" + "ipt>";
document.frm.txtHTML.value=htmltext;



if(mylink=='standard')
{
document.frm.txtLink.value="<a href=\"javascript:NewWindow('" + document.frm.txtPopupURL.value + "','" + document.frm.txtPopupname.value + "','" + mywidth + "','" + myheight + "','" + posval + "','" + infocus + "');\"" + mywinfocus + ">LinkText</a>";
}
if(mylink=='formbutton')
{
document.frm.txtLink.value="<input type=\"button\" name=\"B1\" value=\"Click Me\" onClick=\"NewWindow('" + document.frm.txtPopupURL.value + "','" + document.frm.txtPopupname.value + "','" + mywidth + "','" + myheight + "','" + posval + "','" + infocus + "');\"" + mywinfocus + ">";

}
if(mylink=='formload')
{
document.frm.txtLink.value="<body onLoad=\"NewWindow('" + document.frm.txtPopupURL.value + "','" + document.frm.txtPopupname.value + "','" + mywidth + "','" + myheight + "','" + posval + "','" + infocus + "');\"" + mywinfocus + ">";
}
if(mylink=='formunload')
{
document.frm.txtLink.value="<body onUnload=\"NewWindow('" + document.frm.txtPopupURL.value + "','" + document.frm.txtPopupname.value + "','" + mywidth + "','" + myheight + "','" + posval + "','" + infocus + "');\"" + mywinfocus + ">";
}
document.frm.btnTestpopup.enabled=true;
}


function TestWindow()
{
var mstr='';
if(document.frm.txtHTML.value=='')
{
return;
}
else
{
var win=window.open(document.frm.txtPopupURL.value,document.frm.txtPopupname.value,settings);
if(infocus=='front')
{
win.focus();
}

}
}
function customfullscreenmode()
{
document.frm.chkPopupsize.checked=false;
document.frm.chkPosition.checked=false;
document.frm.txtTop.enabled=false;
document.frm.txtLeft.enabled=false;
document.frm.txtWidth.enabled=false;
document.frm.txtHeight.enabled=false;
}

function customcenter()
{
document.frm.chkPopupsize.checked=true;
document.frm.chkPosition.checked=false;
document.frm.txtTop.value='';
document.frm.txtLeft.value='';
}

function customposition()
{
document.frm.txtTop.enabled=true;
document.frm.txtLeft.enabled=true;
}

function custompopupsize()
{
document.frm.txtWidth.enabled=true;
document.frm.txtHeight.enabled=true;
}

function customrandom()
{
document.frm.chkPopupsize.checked=false;
document.frm.chkPosition.checked=false;
}

</script>

<form name="frm">
<table border="1" cellpadding="5" bordercolor="#000000" cellspacing="0">
<tr>
<td width="100%">
<table border="1" cellspacing="0" cellpadding="3" bordercolor="#EFEFEF" style="border-collapse: collapse">
<tr>
<td valign="top" align="left">
<table border="0" width="100%" cellspacing="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td align="center"><b>Function Name</b></td>
</tr>
<tr>
<td align="center">
<input type="text" name="txtFunctionname" maxlength="50" size="20" value="acewindow">

</td>
</tr>
<tr>
<td align="center"><b>Popup Name</b></td>
</tr>
<tr>
<td align="center">
<input type="text" name="txtPopupname" maxlength="50" size="20" value="acepopup"></td>
</tr>
<tr>
<td align="center"><b>Location of
Window</b></td>
</tr>
<tr>
<td align="center">
<div align="center">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td nowrap>
<p align="right">

<input type="radio" name="rdFocus" value="front" checked>
</td>
<center>
<td nowrap>In Front</td>
</tr>
</center>
<tr>
<td nowrap>
<p align="right">

<input type="radio" name="rdFocus" value="back">
</td>
<center>
<td nowrap>In Back</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</td>
<td valign="top" align="left">
<table border="0" width="100%" cellspacing="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="100%" valign="top" align="left">
<p align="center"><b>Dimensions</b>
&nbsp;
</td>
</tr>
<tr>
<td width="100%" valign="top" align="left">
<table border="0" width="108%" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>
<p align="right">
<input type="checkbox" value="V2" value name="chkPopupsize" onClick="custompopupsize();">

</td>
<td nowrap><b>Popup Size</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" align="center" valign="top">
Width<br>
<input type="number" name="txtWidth" maxlength="3" size="10" value="640" onBlur="checkvalue(this);">

</td>
</tr>
<tr>
<td width="100%" align="center" valign="top">
Height<br>
<input type="number" name="txtHeight" maxlength="3" size="10" value="480" onBlur="checkvalue(this);">

</td>
</tr>
<tr>
<td width="100%" valign="top" align="left">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>
<p align="right">
<input type="radio" value="fullscreen" name="rdwindow" onClick="customfullscreenmode();">
</td>
<td nowrap><b>FullScreen</b></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td valign="top" align="left">
<table border="0" width="100%" cellspacing="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="100%" valign="top" align="left">
<p align="center"><b>Position</b>&nbsp;

</td>
</tr>
<tr>
<td width="100%" valign="top" align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>
<p align="right">
<input type="checkbox" value="V3" name="chkPosition" onClick="customposition();">

</td>
<td nowrap><b>Specify</b>

</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" align="center" valign="top">
Top<br>
<input type="number" name="txtTop" maxlength="4" size="10" value="0" onBlur="checkvalue(this);">

</td>
</tr>
<tr>
<td width="100%" align="center" valign="top">
Left<br>
<input type="number" name="txtLeft" maxlength="4" size="10" value="0" onBlur="checkvalue(this);">

</td>
</tr>
<tr>
<td width="100%" align="left" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>
<p align="right"><b>
<input type="radio" value="center" name="rdwindow" onClick="customcenter();">
</b>
</td>
<td nowrap><b>Center</b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" align="left" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>
<p align="left"><b>
<input type="radio" value="random" name="rdwindow" onClick="customrandom();">
</b>
</td>
<td nowrap><b>Random</b></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td valign="top" align="left">
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td valign="top" align="right" colspan="2">
<p align="center"><b>Options</b>


</td>
</tr>
<tr>
<td valign="top" align="right">
<input type="checkbox" name="chkLocation" value="ON">
</td>
<td valign="top" align="left" nowrap>
Location Bar
</td>
</tr>
<tr>
<td valign="top" align="right">
<input type="checkbox" name="chkDirectories" value="ON">
</td>
<td valign="top" align="left" nowrap>
Directories
</td>
</tr>
<tr>
<td valign="top" align="right">
<input type="checkbox" name="chkMenubar" value="ON">
</td>
<td valign="top" align="left" nowrap>
Menu Bar
</td>
</tr>
<tr>
<td valign="top" align="right">
<input type="checkbox" name="chkToolbar" value="ON">
</td>
<td valign="top" align="left" nowrap>
Tool Bar
</td>
</tr>
<tr>
<td valign="top" align="right">
<input type="checkbox" name="chkStatusbar" value="ON"></td>
<td valign="top" align="left" nowrap>
Status Bar
</td>
</tr>
<tr>
<td valign="top" align="right">
<input type="checkbox" name="chkResizable" value="ON"></td>
<td valign="top" align="left" nowrap>
Resizable
</td>
</tr>
<tr>
<td valign="top" align="right">
<input type="checkbox" name="chkScrollbar" value="ON"></td>
<td valign="top" align="left" nowrap>
Scrollbar</td>
</tr>
<tr>
<td valign="top" align="right">
<input type="checkbox" name="chkDependant" value="ON"></td>
<td valign="top" align="left" nowrap>
Dependant</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" align="left" colspan="4">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td nowrap>
<p align="right"><b>URL of Window:</b>
</td>
<td nowrap>
<input type="text" name="txtPopupURL" maxlength="50" size="50" value="http://www.xtx.kr/">

</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" align="left" colspan="4">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td rowspan="2">
<p align="right"><b>Select Window
Trigger:</b>
</td>
<td align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>
<p align="right">
<input type="radio" name="rdlink" value="standard" checked>
</td>
<td nowrap>Standard Link</td>
</tr>
</table>
</td>
<td align="left"></td>
<td align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>
<p align="right">
<input type="radio" name="rdlink" value="formbutton">
</td>
<td nowrap>Form Button</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>
<p align="right">
<input type="radio" name="rdlink" value="formload">
</td>
<td nowrap>When Page Loads</td>
</tr>
</table>
</td>
<td align="left"></td>
<td align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>
<p align="right">
<input type="radio" name="rdlink" value="formunload">
</td>
<td nowrap>When Page Unloads</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" align="left" colspan="4">
<div align="left">
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td><b>Days to Repeat Popup:</b></td>
<td>

<input type="text" name="txtDaystoPopup" size="3" value="0"></td>
<td><font size="1" face="Tahoma">Hint: enter &#39;0&#39; to popup every
visit. Enter &#39;999&#39; to popup once for each visitor.</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td valign="top" align="left" colspan="4">
<div align="center">
<center>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td nowrap>
<input type="button" value="Generate Code" name="gencode" onClick="GenerateCode();"></td>
<td nowrap>
<input type="reset" value="Reset"></td>
<td nowrap>
<input type="button" value="Test / View Popup" name="btnTestpopup" onClick="TestWindow();"></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p><strong>Step 1:</strong> HEAD에 삽입하세요..
<p>
<input type="button" onClick="document.frm.txtHTML.select();" value="Grab Text" name="cmdgrabtext">
Control-C를 눌러서 카피한 후 페이지에 복사하세요..
<br>
<textarea name="txtHTML" cols="50" rows="5" wrap="virtual"></textarea>
<p><strong>Step 2:</strong> 본문에 링크할 위치에 삽입하세요..

<p>
<input type="button" onclick="document.frm.txtLink.select();" value="Grab Text" name="cmdgrab1ink">
Control-C를 눌러서 카피한 후 페이지에 복사하세요..<br>
<textarea name="txtLink" cols="50" rows="5" wrap="virtual"></textarea>
</form>




</body>
</html>

추천추천 : 177 추천 목록
번호 제목
3,025
 여러 도메인들 간 쿠키 공유하기
3,024
 태그 사이에 있는 텍스트를 추출
3,023
 [JQuery] textbox focus on off일때 숫자 콤마 보여주기
3,022
 쿠키 생성,가져오기,삭제
3,021
 사용자 함수 모음
3,020
 마우스,키보드 제한 ( 오른쪽클릭,드래그,영역선택등..)
3,019
 [HTML5] <video> - DOM으로 제어하기
3,018
 HTML5 video 태그에서 영상 좌우반전
3,017
 PHP - 특정 태그 및 문자열 추출, 제거
3,016
 [PHP] define과 defined의 차이
3,015
 우클릭 완벽차단 스크립트
3,014
 iframe 높이 100% 맞추기
3,013
 curl 함수를 이용한 HTTP REFERER 변경
3,012
 윈도우10 시스템 파일 및 Dism 검사
3,011
 텍스트 줄바꿈, 글자자르기 CSS
3,010
 jQuery Mobile에서 유용한 코드 10가지.
3,009
 [PHP] dirname()함수와 $_SERVER 관련 상수들
3,008
 [PHP] 파일 크기, 사이즈 불러오는 함수, filesize()
3,007
 [jQuery] jQuery Quick API
3,006
 [ transition ] 링크 hover 색상 변화 속도 조절
3,005
 PHP 5.3.0 에서 사라진 함수들 대체
3,004
 어떤 파일들이 include 나 require 되었는지 확인하는 함수(get_included_files)
3,003
 PHP 날짜 형식 및 계산하기(날짜 더하고 빼기)
3,002
 jQuery Mobile에서 유용한 코드 10가지.
3,001
 값이 배열 안에 존재하는지 확인하는 in_array함수
목록
추억의가요방
인기절정뽕짝파티
인기트로트모음
지루박디스코메들리
밤무대애창곡
전자올겐경음악
세월따라노래따라
가슴시린트로트
7080추억속으로
CDN 추천곡
종합성인가요방
못잊을옛날노래
카바레 음악
트롯디스코팡팡
관광 메들리
트롯카페
가요감상실
추억의옛노래
스페셜가요광장
BillBoard Free
추천가요모음
경음악.전자올겐
스페셜음악여행
WOLRD POPs
K-POP\BillBoard
POP TOP BEST

최신인기가요특집
추천가요\인기
F뮤직 인기\발라드
F뮤직 애창\트로트
트로트성인가요
인기가요
프리미엄 POP
경음악\기타
프리미엄 최신가요
프리미엄 성인가요
뮤직트로트 부산광역시부산진구 가야동 ㅣ 개인정보취급방침
Copyright (C) musictrot All rights reserved.