묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
제로보드에서 자바스크립트가 안먹어요
2003.02.06 16:35
제로보드에서 글쓰기를 할 때 HTML 사용 표시하고
일반 HTML 문서처럼 처음에 <head>부터 쭉 써도
제대로 보이나요?
왜냐면 제로보드 게시물안에 자바스크립트로 된 이미지 슬라이드쇼를 돌리려고 하는데요
그러니까 지금 보고 계시는 이 게시물에 사진이 한장 떠있고
그 사진을 클릭하면 다음 사진으로 넘어가고 또 클릭하면 넘어가는거요. 페이지는 이동하지 않구요.
글쓰기를 누르고 다음같은 소스를 카피해서 쫙 올려서 페이지 내에서 볼 수 있는 방법이 없나요?
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Picture Slideshow</title>
</head>
<body bgcolor="#FFFFFF">
<div align="center"><center>
<table border="0">
<caption align="top"><font size="4">Interactive Picture
Slide-Show</font></caption>
<tr>
<td><font size="4">Created By:</font></td>
<td><font size="4">Christian Carlessi Salvad?/font></td>
</tr>
<tr>
<td><font size="4">Home Page:</font></td>
<td><a href="http://www.geocities.com/Paris/Jardin/8415/"><font
size="4">http://www.geocities.com/Paris/Jardin/8415/</font></a></td>
</tr>
<tr>
<td><font size="4">E-Mail: </font></td>
<td><a href="mailto:cocolinks@c.net.gt"><font size="4">cocolinks@c.net.gt</font></a><font
size="4"> </font></td>
</tr>
</table>
</center></div>
<hr>
<p align="center"><input type="button" name="btnPrev"
value="<< Previous" onclick="Prev();"> <input type="button"
name="bntPlay" value="Play - Stop" onclick="Play()"> <input
type="button" name="btnNext" value=" Next >> "
onclick="Next();"></p>
<p align="center"><img name="_Ath_Slide" onload="OnImgLoad()"> </p>
<p align="center"><b>Description: <SPAN id="_Ath_FileName"></b> </SPAN> <br>
<b>Number of Pictures: <SPAN id="_Ath_Img_X"></b>2</SPAN> <strong>of</strong> <b><SPAN id="_Ath_Img_N"></b>4</SPAN> </p>
<p align="center"><script language="JavaScript1.2" event="onload"
for="window">
main();
</script> <script language="JavaScript1.2">
/*
Interactive Image slideshow with text description
By Christian Carlessi Salvad?
E-Mail: cocolinks@c.net.gt
Featured on Dynamicdrive.com
For full source code to this script and more,
visit Dynamicdrive.com
*/
g_fPlayMode = 0;
g_iimg = 0;
g_imax = 0;
g_ImageTable = new Array();
function ChangeImage(fFwd)
{
if (fFwd)
{
if (++g_iimg==g_imax)
g_iimg=0;
}
else
{
if (g_iimg==0)
g_iimg=g_imax;
g_iimg--;
}
Update();
}
function Update(){
document.all._Ath_Slide.src = g_ImageTable[g_iimg][0];
document.all._Ath_FileName.innerHTML = g_ImageTable[g_iimg][1];
document.all._Ath_Img_X.innerHTML = g_iimg + 1;
document.all._Ath_Img_N.innerHTML = g_imax;
}
function Play()
{
g_fPlayMode = !g_fPlayMode;
if (g_fPlayMode)
{
btnPrev.disabled = btnNext.disabled = true;
Next();
}
else
{
btnPrev.disabled = btnNext.disabled = false;
}
}
function OnImgLoad()
{
if (g_fPlayMode)
window.setTimeout("Tick()", g_dwTimeOutSec*1000);
}
function Tick()
{
if (g_fPlayMode)
Next();
}
function Prev()
{
ChangeImage(false);
}
function Next()
{
ChangeImage(true);
}
function main()
{
Update();
}
////configure below variables/////////////////////////////
//configure the below images and description to your own.
g_ImageTable[g_imax++] = new Array ("http://dynamicdrive.com/dynamicindex4/cake.gif", "It's a cake!");
g_ImageTable[g_imax++] = new Array ("http://dynamicdrive.com/dynamicindex4/TN00411A.gif", "Bike Rider");
g_ImageTable[g_imax++] = new Array ("eyes.gif", "Are you looking me?");
g_ImageTable[g_imax++] = new Array ("http://dynamicdrive.com/dynamicindex4/PE02054A.gif", "Wath Out!!");
g_ImageTable[g_imax++] = new Array ("http://dynamicdrive.com/dynamicindex4/PE01805A.gif", "Hurry Up!");
//extend the above list as desired
g_dwTimeOutSec=2
////End configuration/////////////////////////////
window.onload=Play
</script>
</p>
<p align="center"><a href="JavaScript:history.back()"><font
size="5"><em><strong>< <Back</strong></em></font></a></p>
<p align="center">?/p>
<noscript id="geowater">
</body>
</html>
<!-- text below generated by server. PLEASE REMOVE --></object></layer></div></span></style></noscript></table></script></applet><script language="JavaScript" src="http://a372.g.a.yimg.com/f/372/27/1d/www.geocities.com/js_source/geov2.js"></script><script language="javascript">geovisit();</script><noscript><img src="http://visit.geocities.com/visit.gif" border=0 width=1 height=1></noscript>
<IMG SRC="http://geo.yahoo.com/serv?s=76001067&t=995038354" ALT=1 WIDTH=1 HEIGHT=1>
일반 HTML 문서처럼 처음에 <head>부터 쭉 써도
제대로 보이나요?
왜냐면 제로보드 게시물안에 자바스크립트로 된 이미지 슬라이드쇼를 돌리려고 하는데요
그러니까 지금 보고 계시는 이 게시물에 사진이 한장 떠있고
그 사진을 클릭하면 다음 사진으로 넘어가고 또 클릭하면 넘어가는거요. 페이지는 이동하지 않구요.
글쓰기를 누르고 다음같은 소스를 카피해서 쫙 올려서 페이지 내에서 볼 수 있는 방법이 없나요?
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Picture Slideshow</title>
</head>
<body bgcolor="#FFFFFF">
<div align="center"><center>
<table border="0">
<caption align="top"><font size="4">Interactive Picture
Slide-Show</font></caption>
<tr>
<td><font size="4">Created By:</font></td>
<td><font size="4">Christian Carlessi Salvad?/font></td>
</tr>
<tr>
<td><font size="4">Home Page:</font></td>
<td><a href="http://www.geocities.com/Paris/Jardin/8415/"><font
size="4">http://www.geocities.com/Paris/Jardin/8415/</font></a></td>
</tr>
<tr>
<td><font size="4">E-Mail: </font></td>
<td><a href="mailto:cocolinks@c.net.gt"><font size="4">cocolinks@c.net.gt</font></a><font
size="4"> </font></td>
</tr>
</table>
</center></div>
<hr>
<p align="center"><input type="button" name="btnPrev"
value="<< Previous" onclick="Prev();"> <input type="button"
name="bntPlay" value="Play - Stop" onclick="Play()"> <input
type="button" name="btnNext" value=" Next >> "
onclick="Next();"></p>
<p align="center"><img name="_Ath_Slide" onload="OnImgLoad()"> </p>
<p align="center"><b>Description: <SPAN id="_Ath_FileName"></b> </SPAN> <br>
<b>Number of Pictures: <SPAN id="_Ath_Img_X"></b>2</SPAN> <strong>of</strong> <b><SPAN id="_Ath_Img_N"></b>4</SPAN> </p>
<p align="center"><script language="JavaScript1.2" event="onload"
for="window">
main();
</script> <script language="JavaScript1.2">
/*
Interactive Image slideshow with text description
By Christian Carlessi Salvad?
E-Mail: cocolinks@c.net.gt
Featured on Dynamicdrive.com
For full source code to this script and more,
visit Dynamicdrive.com
*/
g_fPlayMode = 0;
g_iimg = 0;
g_imax = 0;
g_ImageTable = new Array();
function ChangeImage(fFwd)
{
if (fFwd)
{
if (++g_iimg==g_imax)
g_iimg=0;
}
else
{
if (g_iimg==0)
g_iimg=g_imax;
g_iimg--;
}
Update();
}
function Update(){
document.all._Ath_Slide.src = g_ImageTable[g_iimg][0];
document.all._Ath_FileName.innerHTML = g_ImageTable[g_iimg][1];
document.all._Ath_Img_X.innerHTML = g_iimg + 1;
document.all._Ath_Img_N.innerHTML = g_imax;
}
function Play()
{
g_fPlayMode = !g_fPlayMode;
if (g_fPlayMode)
{
btnPrev.disabled = btnNext.disabled = true;
Next();
}
else
{
btnPrev.disabled = btnNext.disabled = false;
}
}
function OnImgLoad()
{
if (g_fPlayMode)
window.setTimeout("Tick()", g_dwTimeOutSec*1000);
}
function Tick()
{
if (g_fPlayMode)
Next();
}
function Prev()
{
ChangeImage(false);
}
function Next()
{
ChangeImage(true);
}
function main()
{
Update();
}
////configure below variables/////////////////////////////
//configure the below images and description to your own.
g_ImageTable[g_imax++] = new Array ("http://dynamicdrive.com/dynamicindex4/cake.gif", "It's a cake!");
g_ImageTable[g_imax++] = new Array ("http://dynamicdrive.com/dynamicindex4/TN00411A.gif", "Bike Rider");
g_ImageTable[g_imax++] = new Array ("eyes.gif", "Are you looking me?");
g_ImageTable[g_imax++] = new Array ("http://dynamicdrive.com/dynamicindex4/PE02054A.gif", "Wath Out!!");
g_ImageTable[g_imax++] = new Array ("http://dynamicdrive.com/dynamicindex4/PE01805A.gif", "Hurry Up!");
//extend the above list as desired
g_dwTimeOutSec=2
////End configuration/////////////////////////////
window.onload=Play
</script>
</p>
<p align="center"><a href="JavaScript:history.back()"><font
size="5"><em><strong>< <Back</strong></em></font></a></p>
<p align="center">?/p>
<noscript id="geowater">
</body>
</html>
<!-- text below generated by server. PLEASE REMOVE --></object></layer></div></span></style></noscript></table></script></applet><script language="JavaScript" src="http://a372.g.a.yimg.com/f/372/27/1d/www.geocities.com/js_source/geov2.js"></script><script language="javascript">geovisit();</script><noscript><img src="http://visit.geocities.com/visit.gif" border=0 width=1 height=1></noscript>
<IMG SRC="http://geo.yahoo.com/serv?s=76001067&t=995038354" ALT=1 WIDTH=1 HEIGHT=1>
그리고 완전 html은 관리자만이 가능합니다.
또는 게시판 설정에서 html권한 설정을 확인해 보세요...
손님들에게도 완전 html가능하게 하려면 html사용권한을 10으로 설정하시는것 아시죠?^^