flash animacija za dreamweaver

flash animacija za dreamweaver

offline
  • Pridružio: 05 Avg 2006
  • Poruke: 83
  • Gde živiš: tamoDaleko

Trebam da radim jedan sajt u dreamweaveru i u kome bi u pozadini kao bg image bio neki reklamni tekst koji se kreće slično kao ove pahuljice koje promiču na ovome forumu.Ja sam to uradio u flashu i eksportovao u gif formatu zato što mi DW kao bg image prihvata jedino taj format.Sve radi dobro samo ima jedam veliki problem što je taj gif veličine 800 Mb i naravno usporit će mi učitavanje .Dali ima neko rešenje da rešim ovo na neki drugi način ?



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • Pridružio: 20 Dec 2004
  • Poruke: 2887
  • Gde živiš: Na Balkanu

Ovaj sneg na MC je urađem sa JavaScript-om



offline
  • Pridružio: 10 Avg 2006
  • Poruke: 1009
  • Gde živiš: Beograd

800 MB ?
Da , balkanac je u pravu , ovo je JavaScript , ne mozesh gif-om takve stvari , gif je za manje slichice kojima nije previshe bitan kvalitet .........

offline
  • Pridružio: 07 Okt 2006
  • Poruke: 34
  • Gde živiš: Zrenjanin

Evo ti primer java script-a vezano za tekst koji se krece po ekranu slicno kao ove pahuljice pa probaj to da prilagodis i iskoristis:
<--! ovaj deo ide u HEAD stranice --!> <style type="text/css"> #supertext { position:absolute; left:0; top:0; visibility:hide; visibility:hidden; } </style> <!-- Ovaj deo ide u BODY stranice --!>     <script language="JavaScript1.2"> //Configure the below three variables //1) Set message to display (HTML accepted) var thecontent='<h2><font color="#0000FF">OVDE IDE TEKST KOJI SE KRECE PO EKRANU!</font></h2>' //2) Set delay after which message should be hidden, in miliseconds ('' makes it incessantly visible on the screen) var hidetimer=''; //3) Set speed of animation (1-50), where larger is faster var BallSpeed = 2; ///NO NEED TO EDIT BELOW THIS LINE/////////// var contentWidth; var contentHeight; var maxBallSpeed = 50; var xMax; var yMax; var xPos = 0; var yPos = 0; var xDir = 'right'; var yDir = 'down'; var superballRunning = true; var tempBallSpeed; var currentBallSrc; var newXDir; var newYDir; function initializeBall() {    if (document.all) {       xMax = document.body.clientWidth       yMax = document.body.clientHeight       document.all("supertext").style.visibility = "visible";       contentWidth=supertext.offsetWidth       contentHeight=supertext.offsetHeight       }    else if (document.layers) {       xMax = window.innerWidth;       yMax = window.innerHeight;       contentWidth=document.supertext.document.width       contentHeight=document.supertext.document.height       document.layers["supertext"].visibility = "show";       }    setTimeout('moveBall()',400);    if (hidetimer!='')    setTimeout("hidetext()",hidetimer)    } function moveBall() {    if (superballRunning == true) {       calculatePosition();       if (document.all) {          document.all("supertext").style.left = xPos + document.body.scrollLeft;          document.all("supertext").style.top = yPos + document.body.scrollTop;          }       else if (document.layers) {          document.layers["supertext"].left = xPos + pageXOffset;          document.layers["supertext"].top = yPos + pageYOffset;          }       animatetext=setTimeout('moveBall()',20);       }    } function calculatePosition() {    if (xDir == "right") {       if (xPos > (xMax - contentWidth - BallSpeed)) {          xDir = "left";          }       }    else if (xDir == "left") {       if (xPos < (0 + BallSpeed)) {          xDir = "right";          }       }    if (yDir == "down") {       if (yPos > (yMax - contentHeight - BallSpeed)) {          yDir = "up";          }       }    else if (yDir == "up") {       if (yPos < (0 + BallSpeed)) {          yDir = "down";          }       }    if (xDir == "right") {       xPos = xPos + BallSpeed;       }    else if (xDir == "left") {       xPos = xPos - BallSpeed;       }    else {       xPos = xPos;       }    if (yDir == "down") {       yPos = yPos + BallSpeed;       }    else if (yDir == "up") {       yPos = yPos - BallSpeed;       }    else {       yPos = yPos;       }    } function hidetext(){ if (document.all) supertext.style.visibility="hidden" else if (document.layers) document.supertext.visibility="hide" clearTimeout(animatetext) } if (document.all||document.layers){ document.write('<span id="supertext"><nobr>'+thecontent+'</nobr></span>') window.onload = initializeBall; window.onresize = new Function("window.location.reload()"); } </script>

offline
  • Pridružio: 24 Mar 2004
  • Poruke: 3962
  • Gde živiš: Zemun

lol 800MB.......
JavaScript ti je bolji za te zanimacije

offline
  • Bojan  Male
  • Prijatelj foruma
  • Pridružio: 13 Nov 2003
  • Poruke: 11059
  • Gde živiš: Novi Sad

Verovatno se covek zbunio pa je umesto 800 KB napisao 800 MB.

offline
  • Pridružio: 05 Avg 2006
  • Poruke: 83
  • Gde živiš: tamoDaleko

Pogrešio sam,umesto 800 KB napisao sam ono 800MB.Izvinjavam se.Pozdrav.

offline
  • Pridružio: 19 Maj 2005
  • Poruke: 5224
  • Gde živiš: Oslo

Pa i to je mnogo za sliku.....

Ko je trenutno na forumu
 

Ukupno su 799 korisnika na forumu :: 47 registrovanih, 5 sakrivenih i 747 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: A.R.Chafee.Jr., airsuba, antonije64, Apok, Ben Roj, ccoogg123, chica, debeli, deLacy, DonRumataEstorski, doom83, DPera, dragoljub11987, FileFinder, Gall, hyla, ILGromovnik, Jahorina, Krvava Devetka, kuntalo, kybonacci, laurusri, ljuba, Marko Marković, MiroslavD, Mixelotti, Mlav, nemkea71, NikolaGTR, NoOneEver Dreams, Ognjen D., operniki, RJ, rodoljub, sasa87, simazr, Sirius, Sićko, SlaKoj, slonic_tonic, Smajser, uruk, wizzardone, wolf431, YugoSlav, žeks62, 125