Team:Paris Liliane Bettencourt/Box

From 2010.igem.org

(Difference between revisions)
Line 20: Line 20:
</pre>
</pre>
 +
 +
==Add a resizable image==
 +
 +
#Put a link of this image with [[Image:Name_of_image]]
 +
#Upload image and remove link
 +
# Add this template instead
 +
 +
<pre>
 +
 +
<html>
 +
<div align="center">
 +
<a href="https://2010.igem.org/Image:Name_of_image.jpg" onMouseOut="initial()" onMouseOver="i_change()" >
 +
<img src="https://static.igem.org/mediawiki/2010/thumb/c/cd/nameofimage....jpg" border="0" name="image" />
 +
</a></div>
 +
<script language="JavaScript">
 +
var i_width=515;
 +
var i_height=385;
 +
document.image.width = Math.round(i_width/coeff);
 +
document.image.height = Math.round(i_height/coeff);
 +
</script>
 +
</html>
 +
 +
</pre>
 +
 +
don't forget, to change :<br />
 +
*var i_width=<font color=red>515</font>;
 +
*var i_height=<font color=red>385</font>;
 +
 +
<p style="display:block;"> The size of your image, it's the size max.</p>
==Links==
==Links==

Revision as of 15:23, 6 September 2010

from old template...

How to create a new page ?

  1. Put a link on an existing page, or use search fonction. And click on.
  2. Copy/past this template
  3. Modify as you want

{{Template:Paris2010}}

==Here title of the page==


<p style="display:block;">Here some text</p>


{{Template:Paris2010_menu_right}}

Add a resizable image

  1. Put a link of this image with File:Name of image
  2. Upload image and remove link
  3. Add this template instead

<html>
<div align="center">
<a href="https://2010.igem.org/Image:Name_of_image.jpg" onMouseOut="initial()" onMouseOver="i_change()" >
<img src="https://static.igem.org/mediawiki/2010/thumb/c/cd/nameofimage....jpg" border="0" name="image" />
</a></div>
<script language="JavaScript">
var i_width=515;
var i_height=385;
document.image.width = Math.round(i_width/coeff);
document.image.height = Math.round(i_height/coeff);
</script>
</html>

don't forget, to change :

  • var i_width=515;
  • var i_height=385;

The size of your image, it's the size max.

Links