Ir para conteúdo
Fórum Script Brasil
  • 0

Pop Um Flutuante


Micheletti

Pergunta

Crie doc novo> inserir camada>insira uma img dentro da camada> click com o botão direito do mause no canto esquerdo da camada> click em giar caminho>

agora click e segure o click do botão esquerdo e arraste o porcuso desejado> na linha de tempo aparecerá a opção execução automática. selecione> salve o doc e publique

...sua img já dve está dançando...

</html>

<head>

<script language=JavaScript>

<!--

var dragswitch=0

var nsx

var nsy

var nstemp

function drag_dropns(name){

temp=eval(name)

temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)

temp.onmousedown=gons

temp.onmousemove=dragns

temp.onmouseup=stopns

}

function gons(e){

temp.captureEvents(Event.MOUSEMOVE)

nsx=e.x

nsy=e.y

}

function dragns(e){

if (dragswitch==1){

temp.moveBy(e.x-nsx,e.y-nsy)

return false

}

}

function stopns(){

temp.releaseEvents(Event.MOUSEMOVE)

}

var dragapproved=false

function drag_dropie(){

if (dragapproved==true){

document.all.showimage.style.pixelLeft=tempx+event.clientX-iex

document.all.showimage.style.pixelTop=tempy+event.clientY-iey

return false

}

}

function initializedragie(){

iex=event.clientX

iey=event.clientY

tempx=showimage.style.pixelLeft

tempy=showimage.style.pixelTop

dragapproved=true

document.onmousemove=drag_dropie

}

if (document.all){

document.onmouseup=new Function("dragapproved=false")

}

function hidebox(){

if (document.all)

showimage.style.visibility="hidden"

else if (document.layers)

document.showimage.visibility="hide"

}

function MM_timelinePlay(tmLnName, myID) { //v1.2

//Copyright 1997, 2000 Macromedia, Inc. All rights reserved.

var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;

if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time

tmLn = document.MM_Time[tmLnName];

if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID

if (myID == tmLn.ID) { //if Im newest

setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);

fNew = ++tmLn.curFrame;

for (i=0; i<tmLn.length; i++) {

sprite = tmLn;

if (sprite.charAt(0) == 's') {

if (sprite.obj) {

numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];

if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range

keyFrm=1;

for (j=0; j<sprite.values.length; j++) {

props = sprite.values[j];

if (numKeyFr != props.length) {

if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];

else sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];

} else {

while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;

if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {

if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];

else sprite.obj[props.prop2][props.prop] = props[keyFrm-1];

} } } } }

} else if (sprite.charAt(0)==b' && fNew == sprite.frame) eval(sprite.value);

if (fNew > tmLn.lastFrame) tmLn.ID = 0;

} }

}

function MM_initTimelines() { //v4.0

//MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.

var ns = navigator.appName == "Netscape";

var ns4 = (ns && parseInt(navigator.appVersion) == 4);

var ns5 = (ns && parseInt(navigator.appVersion) > 4);

document.MM_Time = new Array(1);

document.MM_Time[0] = new Array(1);

document.MM_Time["Timeline1] = document.MM_Time[0];

document.MM_Time[0].MM_Name = "Timeline1";

document.MM_Time[0].fps = 15;

document.MM_Time[0][0] = new String("sprite");

document.MM_Time[0][0].slot = 1;

if (ns4)

document.MM_Time[0][0].obj = document["showimage"];

else if (ns5)

document.MM_Time[0][0].obj = document.getElementById("showimage");

else

document.MM_Time[0][0].obj = document.all ? document.all["showimage"] : null;

document.MM_Time[0][0].keyFrames = new Array(1, 16, 33, 42, 45, 47, 48, 58, 73, 79, 81, 82, 83, 84, 85, 86, 90, 97, 105, 115, 116, 117, 118, 119, 120, 121, 122, 134, 136, 149, 153, 154, 155, 156, 157, 158, 159, 163, 171, 174, 187, 191, 192, 193, 194, 196, 198, 201, 205, 207, 261, 262, 263, 264, 265, 267, 270, 277, 281, 284, 288, 291, 296, 301, 313, 325, 328, 338, 350, 354, 355);

document.MM_Time[0][0].values = new Array(2);

if (ns5)

document.MM_Time[0][0].values[0] = new Array("510px", "503px", "495px", "488px", "480px", "473px", "466px", "458px", "451px", "443px", "436px", "428px", "421px", "413px", "406px", "398px", "391px", "383px", "376px", "369px", "362px", "354px", "347px", "340px", "332px", "325px", "318px", "312px", "305px", "299px", "292px", "286px", "280px", "269px", "259px", "250px", "242px", "234px", "227px", "220px", "214px", "208px", "198px", "191px", "186px", "181px", "176px", "170px", "167px", "165px", "162px", "158px", "155px", "151px", "148px", "144px", "141px", "139px", "138px", "137px", "136px", "136px", "135px", "135px", "134px", "134px", "134px", "134px", "134px", "135px", "135px", "135px", "136px", "138px", "141px", "145px", "149px", "153px", "156px", "161px", "166px", "170px", "172px", "174px", "176px", "177px", "184px", "194px", "206px", "219px", "226px", "234px", "241px", "249px", "257px", "265px", "273px", "280px", "286px", "293px", "299px", "306px", "313px", "320px", "328px", "336px", "344px", "352px", "361px", "370px", "378px", "385px", "392px", "398px", "403px", "404px", "406px", "407px", "410px", "413px", "420px", "436px", "438px", "439px", "441px", "443px", "444px", "446px", "448px", "449px", "451px", "452px", "454px", "455px", "460px", "464px", "465px", "466px", "466px", "467px", "468px", "469px", "470px", "470px", "471px", "472px", "473px", "474px", "476px", "482px", "488px", "494px", "498px", "506px", "506px", "507px", "507px", "508px", "513px", "517px", "523px", "529px", "535px", "538px", "540px", "543px", "545px", "548px", "550px", "552px", "554px", "559px", "563px", "566px", "567px", "568px", "568px", "569px", "570px", "570px", "571px", "572px", "572px", "573px", "573px", "574px", "574px", "574px", "574px", "574px", "573px", "572px", "571px", "570px", "569px", "565px", "558px", "549px", "542px", "535px", "527px", "520px", "514px", "506px", "497px", "514px", "483px", "477px", "472px", "466px", "460px", "454px", "448px", "442px", "435px", "429px", "422px", "415px", "408px", "401px", "394px", "386px", "379px", "371px", "363px", "355px", "347px", "338px", "329px", "321px", "312px", "302px", "293px", "283px", "274px", "264px", "255px", "246px", "237px", "229px", "220px", "212px", "204px", "196px", "188px", "180px", "173px", "165px", "158px", "151px", "144px", "138px", "131px", "125px", "118px", "112px", "106px", "100px", "94px", "89px", "83px", "77px", "75px", "67px", "59px", "55px", "51px", "46px", "40px", "35px", "33px", "32px", "31px", "31px", "30px", "29px", "29px", "29px", "29px", "29px", "29px", "29px", "29px", "31px", "35px", "40px", "46px", "52px", "59px", "66px", "74px", "79px", "84px", "90px", "95px", "102px", "109px", "116px", "123px", "132px", "142px", "148px", "154px", "160px", "166px", "173px", "181px", "188px", "196px", "203px", "211px", "218px", "226px", "234px", "242px", "250px", "258px", "266px", "275px", "282px", "289px", "296px", "303px", "309px", "314px", "324px", "328px", "334px", "338px", "342px", "346px", "351px", "355px", "361px", "366px", "372px", "379px", "386px", "393px", "400px", "408px", "415px", "423px", "431px", "439px", "447px", "454px", "460px", "466px", "472px", "484px", "492px", "498px", "503px", "507px");

else

document.MM_Time[0][0].values[0] = new Array(510,503,495,488,480,473,466,458,451,443,436,428,421,413,406,398,391,383,376,369,362,354,347,340,332,325,318,312,305,299,292,286,280,269,259,250,242,234,227,220,214,208,198,191,186,181,176,170,167,165,162,158,155,151,148,144,141,139,138,137,136,136,135,135,134,134,134,134,134,135,135,135,136,138,141,145,149,153,156,161,166,170,172,174,176,177,184,194,206,219,226,234,241,249,257,265,273,280,286,293,299,306,313,320,328,336,344,352,361,370,378,385,392,398,403,404,406,407,410,413,420,436,438,439,441,443,444,446,448,449,451,452,454,455,460,464,465,466,466,467,468,469,470,470,471,472,473,474,476,482,488,494,498,506,506,507,507,508,513,517,523,529,535,538,540,543,545,548,550,552,554,559,563,566,567,568,568,569,570,570,571,572,572,573,573,574,574,574,574,574,573,572,571,570,569,565,558,549,542,535,527,520,514,506,497,514,483,477,472,466,460,454,448,442,435,429,422,415,408,401,394,386,379,371,363,355,347,338,329,321,312,302,293,283,274,264,255,246,237,229,220,212,204,196,188,180,173,165,158,151,144,138,131,125,118,112,106,100,94,89,83,77,75,67,59,55,51,46,40,35,33,32,31,31,30,29,29,29,29,29,29,29,29,31,35,40,46,52,59,66,74,79,84,90,95,102,109,116,123,132,142,148,154,160,166,173,181,188,196,203,211,218,226,234,242,250,258,266,275,282,289,296,303,309,314,324,328,334,338,342,346,351,355,361,366,372,379,386,393,400,408,415,423,431,439,447,454,460,466,472,484,492,498,503,507);

document.MM_Time[0][0].values[0].prop = "left";

if (ns5)

document.MM_Time[0][0].values[1] = new Array("41px", "41px", "41px", "41px", "41px", "41px", "42px", "42px", "42px", "41px", "41px", "41px", "41px", "40px", "40px", "39px", "38px", "37px", "36px", "34px", "32px", "31px", "29px", "27px", "25px", "24px", "22px", "20px", "19px", "17px", "16px", "15px", "14px", "13px", "12px", "12px", "12px", "12px", "12px", "13px", "13px", "13px", "13px", "14px", "14px", "14px", "15px", "15px", "20px", "25px", "31px", "37px", "44px", "52px", "60px", "69px", "78px", "88px", "95px", "102px", "110px", "118px", "125px", "133px", "141px", "150px", "157px", "165px", "172px", "179px", "185px", "191px", "197px", "208px", "215px", "221px", "226px", "229px", "233px", "238px", "241px", "249px", "251px", "253px", "254px", "256px", "259px", "264px", "268px", "272px", "273px", "274px", "275px", "275px", "275px", "276px", "277px", "278px", "280px", "282px", "283px", "285px", "287px", "288px", "289px", "290px", "290px", "290px", "290px", "290px", "290px", "289px", "289px", "289px", "289px", "288px", "287px", "286px", "285px", "279px", "263px", "250px", "244px", "238px", "231px", "224px", "216px", "208px", "199px", "191px", "184px", "178px", "172px", "166px", "162px", "156px", "150px", "144px", "137px", "130px", "122px", "113px", "104px", "95px", "87px", "79px", "72px", "65px", "59px", "50px", "50px", "51px", "52px", "50px", "46px", "45px", "44px", "44px", "64px", "70px", "76px", "83px", "92px", "99px", "106px", "115px", "123px", "132px", "139px", "146px", "152px", "157px", "158px", "166px", "172px", "178px", "185px", "193px", "201px", "209px", "219px", "227px", "236px", "244px", "251px", "258px", "264px", "276px", "283px", "289px", "294px", "302px", "308px", "314px", "319px", "325px", "327px", "330px", "334px", "338px", "342px", "343px", "343px", "343px", "344px", "347px", "350px", "350px", "350px", "350px", "350px", "350px", "350px", "350px", "350px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "351px", "349px", "348px", "340px", "332px", "327px", "322px", "319px", "316px", "308px", "302px", "296px", "289px", "281px", "274px", "267px", "260px", "250px", "240px", "232px", "224px", "217px", "210px", "204px", "198px", "193px", "188px", "184px", "182px", "181px", "179px", "176px", "172px", "168px", "164px", "161px", "159px", "157px", "155px", "154px", "153px", "153px", "153px", "153px", "153px", "153px", "153px", "153px", "154px", "154px", "154px", "153px", "153px", "152px", "152px", "151px", "150px", "150px", "149px", "148px", "147px", "146px", "145px", "143px", "142px", "137px", "130px", "122px", "119px", "115px", "111px", "106px", "102px", "97px", "93px", "89px", "85px", "81px", "78px", "76px", "74px", "72px", "71px", "69px", "68px", "67px", "66px", "64px", "63px", "62px", "59px", "57px", "54px", "52px", "44px");

else

document.MM_Time[0][0].values[1] = new Array(41,41,41,41,41,41,42,42,42,41,41,41,41,40,40,39,38,37,36,34,32,31,29,27,25,24,22,20,19,17,16,15,14,13,12,12,12,12,12,13,13,13,13,14,14,14,15,15,20,25,31,37,44,52,60,69,78,88,95,102,110,118,125,133,141,150,157,165,172,179,185,191,197,208,215,221,226,229,233,238,241,249,251,253,254,256,259,264,268,272,273,274,275,275,275,276,277,278,280,282,283,285,287,288,289,290,290,290,290,290,290,289,289,289,289,288,287,286,285,279,263,250,244,238,231,224,216,208,199,191,184,178,172,166,162,156,150,144,137,130,122,113,104,95,87,79,72,65,59,50,50,51,52,50,46,45,44,44,64,70,76,83,92,99,106,115,123,132,139,146,152,157,158,166,172,178,185,193,201,209,219,227,236,244,251,258,264,276,283,289,294,302,308,314,319,325,327,330,334,338,342,343,343,343,344,347,350,350,350,350,350,350,350,350,350,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,351,349,348,340,332,327,322,319,316,308,302,296,289,281,274,267,260,250,240,232,224,217,210,204,198,193,188,184,182,181,179,176,172,168,164,161,159,157,155,154,153,153,153,153,153,153,153,153,154,154,154,153,153,152,152,151,150,150,149,148,147,146,145,143,142,137,130,122,119,115,111,106,102,97,93,89,85,81,78,76,74,72,71,69,68,67,66,64,63,62,59,57,54,52,44);

document.MM_Time[0][0].values[1].prop = "top";

if (!ns4) {

document.MM_Time[0][0].values[0].prop2 = "style";

document.MM_Time[0][0].values[1].prop2 = "style";

}

document.MM_Time[0].lastFrame = 355;

for (i=0; i<document.MM_Time.length; i++) {

document.MM_Time.ID = null;

document.MM_Time.curFrame = 0;

document.MM_Time.delay = 1000/document.MM_Time.fps;

}

}

//-->

</SCRIPT>

</head>

<body onLoad="MM_timelinePlay('Timeline1')">

<DIV id=showimage style="LEFT: 510px; POSITION: absolute; TOP: 41px; WIDTH: 224; height:83">

<TABLE bgColor=#000080 border=0 cellPadding=2 cellSpacing=0 width=228>

<TBODY>

<TR>

<TD width="226">

<TABLE border=0 cellPadding=0 cellSpacing=0 height=36 width="226">

<TBODY>

<TR>

<TD onmousedown=initializedragie() style="CURSOR: hand"

width="225"><ILAYER width="100%"><LAYER onmouseout=dragswitch=0

onmouseover=dragswitch=1;drag_dropns(showimage) width="100%"><FONT

color=#ffffff face=Verdana><STRONG><SMALL>www.superscript.com.br</SMALL></STRONG></FONT></LAYER></ILAYER></TD>

<TD style="CURSOR: hand" width="34"><A

href="http://"

onclick="hidebox();return false"><IMG border=0 height=20

src="close_o.gif" width=16></A></TD></TR>

<TR>

<TD bgColor=#ffffff colSpan=2

style="PADDING-BOTTOM: 4px; PADDING-LEFT: 4px; PADDING-RIGHT: 4px; PADDING-TOP: 4px"

width="251"><SMALL><FONT

face=Verdana>está janela pode ser movida<br>e fechada clique no x para fechar.</FONT></SMALL><p>

Visite-nos:<a href="http://www.superscript.com.br/forum/forum/default.asp">www.superscript.com.br</a></TD>

</TR>

</TBODY>

</TABLE>

</TD>

</TR>

</TBODY>

</TABLE>

</DIV>

</body>

</html>

<body>

</body>

</html>

Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

  • 0

MUITO LEGAL, parabéns pelo mini-tutorial! :D

Muita gente não sabe como usar a linha do tempo no Dreamweaver... ;)

Mas só lembrando, pode-se fazer com maior facilidade no flash... :lol:

Link para o comentário
Compartilhar em outros sites

  • 0
MUITO LEGAL, parabéns pelo mini-tutorial! :D

Muita gente não sabe como usar a linha do tempo no Dreamweaver... ;)

Mas só lembrando, pode-se fazer com maior facilidade no flash... :lol:

;) !! VOU ME AUSENTAR 1 POUCO DAQUI...porque QUERO APRENDER C++!

FALOW INTÉ A PROXIMA. B)

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,3k
    • Posts
      652,5k
×
×
  • Criar Novo...