[Polycasso-commit] SF.net SVN: polycasso:[210] trunk/polycasso/htdocs/index.shtml
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-12-31 07:14:59
|
Revision: 210
http://polycasso.svn.sourceforge.net/polycasso/?rev=210&view=rev
Author: dbrosius
Date: 2009-12-31 07:14:50 +0000 (Thu, 31 Dec 2009)
Log Message:
-----------
rotate the sample
Modified Paths:
--------------
trunk/polycasso/htdocs/index.shtml
Modified: trunk/polycasso/htdocs/index.shtml
===================================================================
--- trunk/polycasso/htdocs/index.shtml 2009-12-28 06:40:49 UTC (rev 209)
+++ trunk/polycasso/htdocs/index.shtml 2009-12-31 07:14:50 UTC (rev 210)
@@ -4,9 +4,40 @@
<meta name="Keywords" content="polygon cubism image generation">
<script src="mbfg.js">
</script>
+ <script type="text/javascript">
+ var svgs = new Array();
+ svgs[0] = { url: 'polypig.svg',
+ width: 235,
+ height: 176
+ };
+ svgs[1] = { url: 'polycar.svg',
+ width: 500,
+ height: 375
+ };
+ svgs[2] = { url: 'polylamp.svg',
+ width: 299,
+ height: 400
+ };
+ svgs[3] = { url: 'polybicycle.svg',
+ width: 500,
+ height: 333
+ };
+
+ function setSample()
+ {
+ var sample = document.getElementById("sample");
+ if (sample != null)
+ {
+ var idx = Math.floor(Math.random()*svgs.length);
+ sample.src=svgs[idx].url;
+ sample.width=svgs[idx].width;
+ sample.height=svgs[idx].height;
+ }
+ }
+ </script>
<link rel="stylesheet" type="text/css" href="mbfg.css" />
</head>
- <body background>
+ <body background onload="setSample()">
<div style="position:absolute;top:0;left:0;width:256;height:65535;z-index:1;background-image:url(blend.jpg);">
</div>
<div style="position:absolute;top:20;left:20;z-index:3;">
@@ -30,7 +61,7 @@
Good artwork takes time! -- and so does this.</p>
<p>-- Dave Brosius</p>
- <iframe src="polypig.svg" width="235px" height="176px"/>
+ <iframe id="sample" name="sample" src="polypig.svg" width="235px" height="176px"/>
<p>This pig is an svg output of polycasso</p>
</div>
<script type="text/javascript">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|