묻고답하기

안녕하세요.

월요일 노곤하시죠?


사이트 메뉴로 _ 레이아웃이 적용 되지 않은 위젯 페이지를 하나 만들려고 합니다.

근데 배경이 문젠데요.


http://vanitynightclubtacoma.com/


위 사이트에서 사용하는 배경을 위젯 페이지의 배경으로 넣을려고 하는데요.

위 사이트 소스로 배경 페이지를 만들어놓긴 했는데 위젯을 적용하는 방법을 모르겠네요.


1. 배경 페이지에 <div>위젯 코드</div> 하여 붙여넣기를 해보았는데도 위젯이 보이지 않고요. ㅋ

2. 배경 페이지를 레이아웃으로 생성해서 하는 방법도 될까 싶어 배경 페이지를 layout.html 로 바꾸고 layout 폴더에 새폴더를

    만든후 관리자 설정에서 위젯 페이지 생성 - 레이아웃 디자인 적용하니깐 안되네요. ㅋ


어떤식으로 응용을 해야 할지 통 감이 오질 않습니다.


도움주시면 큰도움 되겠습니다.


1번의 방법에서 뭔가 추가를 하면 위젯이 보이지 않을까 싶은데요.

기초지식 없이 할려고 하니 도움없인 힘드네요.


아래는 배경 페이지의 소스에 <div>위젯 코드</div> 를 넣어본 소스인데요.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="stylesheet.css" type="text/css" media="screen" />

<title>Vanity Nightclub Tacoma</title>

</head>

<body>

<div id="bg">

<img src="../images/back1.jpg" style="z-index: 0; opacity: -0.001;">

<img src="../images/back2.jpg" style="z-index: 0; opacity: -0.001;">

<img src="../images/back3.jpg" style="z-index: 1; opacity: 0.999;"></div>


<script type="text/javascript">

// when moving an element the inline or class rule style position of the element should be assigned as

// 'position:relative;' or 'position:absolute;'

//

// The element would normally be assigned a unique ID name.

//


// **** Initialising the Script.

//

// The script is initialised by assigning an instance of the script to a variable.

// e.g A = new zxcAnimate('left','id1')

// where:

//  A           = a global variable                                                               (variable)

//  parameter 0 = the mode(see Note 1).                                                           (string)

//  parameter 1 = the unique ID name or element object.                                           (string or element object)

//  parameter 1 = the initial value.                                                              (digits, default = 0)


// **** Executing the Effect

//

// The effect is executed by an event call to function 'A.animate(10,800 ,5000,[10,800]);'

// where:

//  A           = the global referencing the script instance.                                 (variable)

//  parameter 0 = the start value.                                                            (digits, for opacity minimum 0, maximum 100)

//  parameter 1 = the finish value.                                                           (digits, for opacity minimum 0, maximum 100)

//  parameter 2 =  period of time between the start and finish of the effect in milliseconds. (digits or defaults to previous or 0(on first call) milliSeconds)

//  parameter 3 = (optional) to scale the effect time on a specified minimum/maximum.         (array, see Note 3)

//                 field 0 the minimum value. (digits)

//                 field 1 the maximum value. (digits)

//  parameter 3 = (optional) the type of progression, 'sin', 'cos' or 'liner'.                (string, default = 'liner')

//                 'sin' progression starts fast and ends slow.

//                 'cos' progression starts slow and ends fast.

//

//  Note 1:  Examples modes: 'left', 'top', 'width', 'height', 'opacity.

//  Note 2:  The default units(excepting opacity) are 'px'.

//           For hyphenated modes, the first character after the hyphen must be upper case, all others lower case.

//  Note 3:  The scale is of particular use when re-calling the effect

//           in mid progression to retain an constant rate of progression.

//  Note 4:  The current effect value is recorded in A.data[0].

//  Note 5:  A function may be called on completion of the effect by assigning the function

//           to the animator intance property .Complete.

//           e.g. [instance].Complete=function(){ alert(this.data[0]); };

//




// **** Functional Code(1.58K) - NO NEED to Change


function zxcAnimate(mde,obj,srt){

 this.to=null;

 this.obj=typeof(obj)=='object'?obj:document.getElementById(obj);

 this.mde=mde.replace(/\W/g,'');

 this.data=[srt||0];

 return this;

}


zxcAnimate.prototype.animate=function(srt,fin,ms,scale,c){

 clearTimeout(this.to);

 this.time=ms||this.time||0;

 this.neg=srt<0||fin<0;

 this.data=[srt,srt,fin];

 this.mS=this.time*(!scale?1:Math.abs((fin-srt)/(scale[1]-scale[0])));

 this.c=typeof(c)=='string'?c.charAt(0).toLowerCase():this.c?this.c:'';

 this.inc=Math.PI/(2*this.mS);

 this.srttime=new Date().getTime();

 this.cng();

}


zxcAnimate.prototype.cng=function(){

 var oop=this,ms=new Date().getTime()-this.srttime;

 this.data[0]=(this.c=='s')?(this.data[2]-this.data[1])*Math.sin(this.inc*ms)+this.data[1]:(this.c=='c')?this.data[2]-(this.data[2]-this.data[1])*Math.cos(this.inc*ms):(this.data[2]-this.data[1])/this.mS*ms+this.data[1];

 this.apply();

 if (ms<this.mS) this.to=setTimeout(function(){oop.cng()},10);

 else {

  this.data[0]=this.data[2];

  this.apply();

  if (this.Complete) this.Complete(this);

 }

}


zxcAnimate.prototype.apply=function(){

 if (isFinite(this.data[0])){

  if (this.data[0]<0&&!this.neg) this.data[0]=0;

  if (this.mde!='opacity') this.obj.style[this.mde]=Math.floor(this.data[0])+'px';

  else zxcOpacity(this.obj,this.data[0]);

 }

}


function zxcOpacity(obj,opc){

 if (opc<0||opc>100) return;

 obj.style.filter='alpha(opacity='+opc+')';

 obj.style.opacity=obj.style.MozOpacity=obj.style.KhtmlOpacity=opc/100-.001;

}



</script>


<script type="text/javascript">

<!--


function BGFade(o){

 var p=document.getElementById(o.ID)

 if (p){

  var bgs=p.getElementsByTagName('IMG');

  this.bgs=[];

  for (var z0=0;z0<bgs.length;z0++){

   this.bgs[z0]=new zxcAnimate('opacity',bgs[z0]);

  }

  this.nu=z0-1;

  this.ms=o.Duration||4000;

  this.hold=o.Hold||this.ms*2;

  if(this.nu>0){

   this.Rotate();

  }

 }

}


BGFade.prototype.Rotate=function(){

 this.bgs[this.nu].obj.style.zIndex='0';

 this.bgs[this.nu].animate(100,0,this.ms);

 this.nu=++this.nu%this.bgs.length;

 this.bgs[this.nu].obj.style.zIndex='1';

 this.bgs[this.nu].animate(0,100,this.ms);

 var oop=this;

 this.to=setTimeout(function(){ oop.Rotate(); },this.hold);

}


function zxcByClassName(nme,el,tag){

 if (typeof(el)=='string') el=document.getElementById(el);

 el=el||document;

 for (var tag=tag||'*',reg=new RegExp('\\b'+nme+'\\b'),els=el.getElementsByTagName(tag),ary=[],z0=0; z0<els.length;z0++){

  if(reg.test(els[z0].className)) ary.push(els[z0]);

 }

 return ary;

}



new BGFade({

 ID:'bg',

 Duration:4000,

 Hold:5000

});

//-->

</script>

<div id="widget" z-index="3"><img class="zbxe_widget_output" widget="content" skin="default" colorset="white" content_type="document" module_srls="194" list_type="normal" tab_type="none" markup_type="table" page_count="1" option_view="title,regdate,nickname" show_browser_title="Y" show_comment_count="Y" show_trackback_count="Y" show_category="Y" show_icon="Y" order_target="regdate" order_type="desc" thumbnail_type="crop" /></div>


        </body>

</html> 


1번의 방법 말고도 위젯 페이지에 위 배경 소스를 접목시키고 여러 위젯을 접목시켜서 레이아웃 없는 위젯페이지를 운영해볼려고 합니다.


도움주시면 감사하겠습니다.

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
꾸러기^^ 플래시색상관련질문입니다..  
강요찬 [PHP] 간단한 PHP 구문 오류. - Call to undefined function... [2] 2007.08.10
김영범 내부 아이피를 고시원 입니다... 외부에서 접근 하는 방법이 없습니까?  
guppy 동영상 파일의 라이센스를 제거하는 법을 알고 싶어요 [1] 2007.08.10
조인혁 포탈싸이트 초기화면에 가운데 ''떡''하고 뜨는 플래쉬 광고 [1] 2007.08.10
김민규 특정시간에 if 이하의 구문을 실행시키는 방법 좀...?? [3] 2007.08.10
안창환 하이퍼링크 style와 제로보드의 style.css [2] 2007.08.10
김소영 카테고리 없애는 방법없나요? [2] 2007.08.10
한승진 자바스크립트에서 window.open 질문.. [3] 2007.08.10
윤수리 제로카운터 설치시 다음으로 넘어가지가 않습니다. [1] 2007.08.10
한승진 우리 서버 컴퓨터가 너무 부하가 많아졌어요 [2] 2007.08.10
박진수 기존의 움직이는 GIF 축소는 어떻게 하면 됩니까? [5] 2007.08.10
HHH 테이블에..롤오버 적용? [1] 2007.08.10
고냉이 콱! 계정에 있는 파일들을 압축하는 명령어가 뭐죠? [3] 2007.08.10
천사를봤다 이 폰트가 모지요..그림있음.. [1] 2007.08.10
김광수 winapm을 깔려는데요... [1] 2007.08.10
달파란[R] 메뉴에서 아이프레임으로 링크하는법좀.. [1] 2007.08.10
이나 윈도 XP 에서 말이죠...도와주세여~~ [2] 2007.08.10
apm 에서 비밀번호가 ㅡ.ㅡ;;급합니다.ㅠ.ㅠ [1] 2007.08.10
김경민 노프레임에 대한 질문사항입니다. [1] 2007.08.10
이원규 오류가 나는데. 어떻게 해야는지~.. [1] 2007.08.10
김복수 고수님 들 도와주세요-질문방에 도 잇지만 혹시 리플이 안달리지도 몰라여기도 올립니다 죄송합니다 [1] 2007.08.10
정문목 동영상처럼 나오는 GIF 파일은 어떻게 만드나요? [7] 2007.08.10
김문희 내 컴퓨터에 apm을 설치하고 제로보드를 사용하는데요... [2] 2007.08.10
샤샤 나모로 홈페이지를 그대로 저장하려면 [2] 2007.08.10
Jjang embed .원하지않는 공백이 생깁니다. [2] 2007.08.10
천재전 링크를 클릭하면.. [1] 2007.08.10
somewhere 폰트를 FTP에 올릴때 [1] 2007.08.10
somewhere 드림위버 질문 [1] 2007.08.10
안양준 나모로작업시 *.php로 저장하는데 화일이 너무 커서 이상합니다. [1] 2007.08.10