DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Dojo/window/slidshow

04.08.2006
| 6256 views |
  • submit to reddit
        // description of your code here

<?php
/*
 * Created on 2006-4-7
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
?>

<html>
<head>
<meta http-equiv="Content-Language" content="en" />
<meta name="GENERATOR" content="PHPEclipse 1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
</head>


<link href="dojo/src/widget/templates/HtmlSlideShow.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="dojo/dojo.js"></script>

	<script type="text/javascript" src="windows/javascripts/prototype.js"> </script> 
	<script type="text/javascript" src="windows/javascripts/effects.js"> </script>
	<script type="text/javascript" src="windows/javascripts/window.js"> </script>
	<script type="text/javascript" src="windows/javascripts/debug.js"> </script>
	<link href="windows/themes/default.css" rel="stylesheet" type="text/css" >	 </link>
	<link href="windows/themes/theme1.css" rel="stylesheet" type="text/css" >	 </link>
	<link href="winodws/themes/alert.css" rel="stylesheet" type="text/css" >	 </link>
	<title>Sample Windows</title>
<script type="text/javascript">
   //dojo.require("dojo.widget.Editor");
    //dojo.require("dojo.widget.SlideShow");
	//doji.require("dojo.event.*");
     </script>

<body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99">

	<a href="javascript:openModalDialog()">Click here to open a modal window</a>
	<br/>
	<script>
	var index= 0;
    var contentWin = null;
		function openContentWindow() {
		if (contentWin != null) {
			Dialog.alert("Close the window 'Test' before opening it again!"); 
		}
		else {
			contentWin = new Window('content_win', {title: "Test ",top:100, left:100, resizable: false})
			contentWin.setContent('test_content', true)
			contentWin.toFront();
			contentWin.setDestroyOnClose();
			contentWin.show();	
		}		
	}

		function openModalDialog() {
		var win = new Window('modal' + index, {title: "易登网",top:100, left:100,  width:300, height:200, zIndex:150, opacity:50, resizable: true,hideEffect: Effect.Grow})
		win.getContent().innerHTML = "  <a href='http://www.edeng.cn'>edeng</a><br /><input type='submit' value='æ??交'>"
		win.show(true);	
		index++;
	}



	win = new Window('dialog1', {className: "dialog",  width:300, height:400, zIndex: 100, resizable: true, title: "Title", hideEffect: Effect.SwitchOff})
	win.getContent().innerHTML= "<div style='padding:10px'> Lorem ipsum dolor sit amet, consectetur adipiscing elit, set eiusmod tempor incidunt et labore et dolore magna aliquam. Ut enim ad minim veniam, quis nostrud exerc. Irure dolor in reprehend incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse molestaie cillum. Tia non ob ea soluad incom dereud facilis est er expedit distinct. Nam liber te conscient to factor tum poen legum odioque civiuda et tam. \
	At vver eos et accusam dignissum qui blandit est praesent. Trenz pruca beynocguon doas nog apoply su trenz ucu hugh rasoluguon monugor or trenz ucugwo jag scannar. Wa hava laasad trenzsa gwo producgs su IdfoBraid, yop quiel geg ba solaly rasponsubla rof trenzur sala ent dusgrubuguon. Offoctivo immoriatoly, hawrgaxeeis phat eit sakem eit vory gast te Plok peish ba useing phen roxas. Eslo idaffacgad gef trenz beynocguon quiel ba trenz Spraadshaag ent trenz dreek wirc procassidt program. Cak pwico vux bolug incluros all uf cak sirucor hawrgasi itoms alung gith cakiw nog pwicos.\
	Lor sum amet, commy nulputat. Duipit lum ipisl eros dolortionsed tin hent aliquis illam volor in ea feum in ut adipsustrud elent ulluptat. Duisl ullan ex et am vulputem augiam doloreet amet enibh eui te dipit acillutat acilis amet, suscil er iuscilla con utat, quisis eu feugait ad dolore commy nullam iuscilisl iureril ilisl del ut pratuer iliquis acipissit accum quis nulluptat. Dui bla faccumsan velis auguero con henis duismolor sumsandrem quat vulluptat alit er iniamcore exeriure vero core te dit ut nulla feummolore commod dipis augiamcommod tem ese dolestrud do odo odiamco eetummy nis aliquamcommy nonse eu feugue del eugiamconsed ming estrud magnis exero eumsandio enisim del dio od tat.sumsan et pratum velit ing etue te consequis alis nullan et, quis am iusci bla feummy.</div>"
	win.showCenter();
	</script>
<div dojoType="Editor" items="textGroup;|;listGroup;|;colorGroup;|;blockGroup;|;commandGroup;">
    some contentfsdfsdfsdfsdfsdfsdfsd  dddd
</div>
<img dojoType="SlideShow" 
    imgUrlBase="dojo/src/pic/"
    imgUrls="2.jpg;3.jpg" 
    transitionInterval="700"
    delay="1000"
    imgWidth="400"
    imgHeight="300"
    width="400"
    height="300"
    src="http://dojotoolkit.org/path/to/dojo/tests/widget/images/1.jpg" /><p>
    <?php echo "ddd" ?>





</body>
</html>