PDA

View Full Version : Please help me Embed swf in javascript



greenhawk
12-05-2011, 02:16 PM
Dear friends,
I need to display myflash.swf instead of SimpleImage.gif in the same position

full code is here: http://www.dhteumeuleu.com/mandatory-upgrade/

I want to make this page as intro to the website..so i need to embed my christmas tree in the intro ,
because i tried to convert flash to gif the size was very big 1 mb
but actual flash size is 75 kb
my email is green_hawk_lb @ hotmail.com


/* ---- main loop ---- */
run: function () {
/* ---- camera ease ---- */
cx -= Math.round((xm + cx) * .1);
cy += Math.round((ym - cy) * .1);
cz += Math.round((zm - cz) * .1);
/* ---- display loop ---- */
var i = N;
while (i--) O[i].display();
}
}
} ();


/* ==== global onload ==== */
onload = function () {
/* ---- build structure ----
i3D.init(container, path, focalLength, globalZoom, fontSize, onmouseover_border, hyperlink_border
[image, x,y,z, {options}], ...
);
options { 'zx':zoom x, 'xy': zoom y, 'url':hyperlink, 'txt':text
'repeat':[axis(1,2,3), number, increment]
}
*/
i3D.init("screen", "images/", 300, 1, 12, '#666 solid 1px', '#fff dotted 1px', [

['1.png', 600, 90, 500, { 'txt': 'asicity'}],

['26.png', -300, 0, -200, { 'repeat': [3, 3, -400]}],
['26.png', 300, 0, -200, { 'repeat': [3, 3, -400]}]
]);
}
</script>
</head>
<body>
<div id="screen">
</div>
</body>
</html>