View previous topic :: View next topic
Author
Message
g-style Joined: 08 Oct 2003 Posts: 89 Location: bG
Posted: 04.01.2005 00:11 Post subject: 100% by 100% xhtml valid Flash embed
Geoff Stearns (www.deconcept.com) je otkrio nacin da se u firefoxu vide swf-ovi cije su dimenzije 100% x 100% i to uz pomoc java scripta.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>100% by 100% xhtml valid Flash embed</title>
<!-- XHTML 1.0 Strict 100% by 100% stretched flash embed example geoff@deconcept.com -->
<script type="text/javascript" src="flashobject.js"></script>
<style type="text/css">
html {
height: 100%;
/* hide scrollbar in ie 6 pc */
overflow: hidden;
}
body {
height: 100%;
margin: 0;
padding: 0;
background-color: #eeeeee;
}
#flashcontent {
height: 100%;
}
</style>
</head>
<body>
<div id="flashcontent">
<script type="text/javascript">
// <![CDATA[
var myFlashObject = new FlashObject("walker.swf", "walker", "100%", "100%", 6, "#999999");
myFlashObject.write();
// ]]>
</script>
<noscript>
<p>You must enable Javascript to view this content. <a href="#">Link to alternate content</a></p>
</noscript>
</div>
</body>
</html>
ovde je primer a ovde objashnjenje
_________________GSTL | WTF7 | DNK | Svakog dana i u svakom pogledu sve sam veći psihopata!
Back to top
maratz mi3.crew Joined: 24 Nov 2003 Posts: 1207 Location: ZAG
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Powered by phpBB © 2001, 2005 phpBB Group