Template:Team:IBB Pune/slideshow

From 2009.igem.org

(Difference between revisions)
(New page: <html><script language="JavaScript1.1"> <!-- - JavaScript Image slideshow: By JavaScript Kit (www.javascriptkit.com) Over 200+ free JavaScript here!: var slideimages=new Array() var s...)
 
(11 intermediate revisions not shown)
Line 1: Line 1:
-
<html><script language="JavaScript1.1">
+
<html>
-
<!--
+
-
/*
+
<head>
-
JavaScript Image slideshow:
+
-
By JavaScript Kit (www.javascriptkit.com)
+
-
Over 200+ free JavaScript here!
+
-
*/
+
-
var slideimages=new Array()
+
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
-
var slidelinks=new Array()
+
<script type="text/javascript"><!--
-
function slideshowimages(){
+
var delay=7000
-
for (i=0;i<slideshowimages.arguments.length;i++){
+
var ie4=document.all
-
slideimages[i]=new Image()
+
var curindex=0
-
slideimages[i].src=slideshowimages.arguments[i]
+
var totalcontent=0
 +
function get_total(){
 +
if (ie4){
 +
while (eval("document.all.content"+totalcontent))
 +
totalcontent++
}
}
 +
else{
 +
while (document.getElementById("content"+totalcontent))
 +
totalcontent++
}
}
-
 
-
function slideshowlinks(){
 
-
for (i=0;i<slideshowlinks.arguments.length;i++)
 
-
slidelinks[i]=slideshowlinks.arguments[i]
 
}
}
-
 
+
function contract_all(){
-
function gotoshow(){
+
for (y=0;y<totalcontent;y++){
-
if (!window.winslide||winslide.closed)
+
if (ie4)
-
winslide=window.open(slidelinks[whichlink])
+
eval("document.all.content"+y).style.display="none"
else
else
-
winslide.location=slidelinks[whichlink]
+
document.getElementById("content"+y).style.display="none"
-
winslide.focus()
+
}
}
 +
}
 +
function expand_one(which){
 +
contract_all()
 +
if (ie4)
 +
eval("document.all.content"+which).style.display=""
 +
else
 +
document.getElementById("content"+which).style.display=""
 +
}
 +
function rotate_content(){
 +
get_total()
 +
contract_all()
 +
expand_one(curindex)
 +
curindex=(curindex<totalcontent-1)? curindex+1: 0
 +
setTimeout("rotate_content()",delay)
 +
}
 +
window.onload=rotate_content
 +
//--></script>
 +
</head>
 +
 +
<body align:center>
 +
<div id="content0" style="display:none">
 +
1
 +
<img src="https://static.igem.org/mediawiki/2009/f/f1/PuneCity.jpg" width="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
<div id="content1" style="display:none">
 +
2
 +
<img src="https://static.igem.org/mediawiki/2009/d/d8/Ss0.jpg" width="965px" width="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
3
 +
<div id="content2" style="display:none">
 +
<img src= "https://static.igem.org/mediawiki/2009/1/1d/Ss3.jpg" width="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
4
 +
<div id="content3" style="display:none">
 +
<img src="" width="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
5
 +
<div id="content4" style="display:none">
 +
<img src="http://lh5.ggpht.com/_x-FreF2qP_c/Stcm43_CfBI/AAAAAAAACCM/dtdDS6vX6fw/s800/campus16.jpg" wwidth="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
6
 +
<div id="content5" style="display:none">
 +
<img src="http://upload.wikimedia.org/wikipedia/commons/2/2b/IITM_Library.JPG" width="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
7
 +
<div id="content6" style="display:none">
 +
<img src="http://upload.wikimedia.org/wikipedia/commons/9/9a/ChennaiCentral2.JPG" width="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
8
 +
<div id="content7" style="display:none">
 +
<img src="http://www.amitbhawani.com/career/Images/IIT-Madras/IIT-Madras-1.jpg" width="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
9
 +
<div id="content8" style="display:none">
 +
<img src="https://static.igem.org/mediawiki/2009/9/9d/DSC04804.JPG" height="293px" border="0"></div>
 +
10
 +
<div id="content9" style="display:none">
 +
<img src="https://static.igem.org/mediawiki/2009/1/16/Labibb.jpg" width="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
11
 +
<div id="content10" style="display:none">
 +
<img src="http://lh5.ggpht.com/_x-FreF2qP_c/StcmD4tO14I/AAAAAAAACBw/fejfq_eizu0/s800/Saarang1.JPG" width="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
12
 +
<div id="content11" style="display:none">
 +
<img src="http://lh5.ggpht.com/_x-FreF2qP_c/Stcm5NoNigI/AAAAAAAACCQ/0g6budvRkKA/s800/IIT44.jpg" width="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
13
 +
<div id="content12" style="display:none">
 +
<img src="http://lh3.ggpht.com/_x-FreF2qP_c/StcyDKUzzvI/AAAAAAAACCc/-_hzMlrpGrM/s800/IIT69.jpg" width="965px" height="293px" border="0"></div>
 +
14
 +
<div id="content13" style="display:none">
 +
<img src="http://lh4.ggpht.com/_x-FreF2qP_c/Stc2WOLIQOI/AAAAAAAACCg/h8lihKs3XVU/s800/IMG_0167.JPG" width="968" height="510" alt="ibb_Pune" ALIGN=center></div>
 +
</div>
-
//-->
+
</boy>
-
</script>
+
</html>
</html>

Latest revision as of 11:48, 18 October 2009

3 4 5 6 7 8 9 10 11 12 13 14