Software Schnipsel

Java

Snippes

Wetterbox-Code
Bei dynamischen Seiten können Sie die PLZ auch im Aufrufcode der Box flexibel ändern ("...PLZ=12345...").

 
<script type="text/javascript" language="javascript" 
src="http://www.donnerwetter.de/wetter/net/boxregio.mv?
typ=1&plz=04552&color_bg=FFFF80&color_hi=FFFFFF&color_txt=8
08000&width=150"></script>
<noscript>JavaScript ist deaktiviert - leider sehen Sie 
hier kein aktuelles Wetter. <a 
href="http://www.donnerwetter.de" 
target="_blank">www.Donnerwetter.de</a></noscript>



Akkordeon - Registerkarte
Der JavaScript-Cod der HTML-Seiten:

 
<link type="text/css" href="css/ui-lightness/jquery-ui-
1.8.18.custom.css" rel="stylesheet" />    
<script type="text/javascript" 
src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" 
src="js/jquery-ui-1.8.18.custom.min.js"></script>



 
<script type="text/javascript">
$(function(){
	// Accordion
	$("#accordion").accordion({ header"h1"
		});
	// Tabs
	$('#tabs').tabs();
	});
</script>


JavaScript-Cod der externen Datei

 
<!-- Accordion -->
<div id="accordion">
<div>
<h1><a style="font-size:12px" href="#">Region</a></h1>
<div style="font-family:Arial, Helvetica, sans-serif;
color:#C03;
 font-size:10px"></div>
</div>
 </div>
<!-- Accordion -->   




 
<script type="text/javascript" src="countdown/jquery-
1.3.2.min.js"></script>
<script type="text/javascript" 
src="countdown/jquery.countdown.js"></script>



 
<script type="text/javascript">
$(function () {
	$('#defaultCountdown').countdown({
		 until: new Date(201207 11000),
		    //Enddatum 01.10.2010
		    //until: +8000000, 
		    format'YDHMS',
		layout'<div id="t7_timer">'+                            
		'<div id="t7_vals">'+                                
		'<div id="t7_y" class="t7_numbs">{ynn}</div>'+                                
		'<div id="t7_d" class="t7_numbs">{dnnn}</div>'+                                
		'<div id="t7_h" class="t7_numbs">{hnn}</div>'+                                
		'<div id="t7_m" class="t7_numbs">{mnn}</div>'+                                
		'<div id="t7_s" class="t7_numbs">{snn}</div>'+                            
		'</div>'+                            
		'<div id="t7_labels">'+                                
		'<div id="t7_yl" class="t7_labs">Jahre</div>'+                                
		'<div id="t7_dl" class="t7_labs">Tage</div>'+                                
		'<div id="t7_hl" class="t7_labs" style="text-
		align:center;
		">Std.</div>'+                                
		'<div id="t7_ml" class="t7_labs" style="text-
		align:center;
		">Min.</div>'+                                
		'<div id="t7_sl" class="t7_labs" style="text-
		align:center;
		">Sek.</div>'+                            
		'</div>'+                            
		'<div id="t7_timer_over"></div>'+
		'</div>'
		});
	    });
</script>



 
htmlbody {
	}
/* copy styles */    
h1h2h3h4pli {
	    font-family HelveticaArialSans-Serif;
	    text-align left;
	}
pre {
	    font-family"Courier New"CourierMonacomonospace;
	    text-alignleft;
	    font-size14px;
	    font-weightbold;
	}
h1h2 {
	    font-size20px;
	    font-weightbold;
	}
pli {
	    font-size14px;
	    font-weightnormal;
	    margin0px 0px 10px 0px;
	}
tdth {
	    font-family HelveticaArialSans-Serif;
	    font-size20px;
	    margin0px;
	}
#t7_timer {
	    width300px;
	    height80px;
	    positionrelative;
	}
#t7_timer_over {
	    width200px;
	    height80px;
	    background-repeatno-repeat;
	    positionabsolute;
	    top0px;
	    left1px;
	    padding: : 0px;
	}
#t7_vals {
	    width100%;
	    clear:both;
	    margin0px auto;
	}
.t7_numbs {
	    font-size16px;
	    font-familyArialsans-serif;
	    font-weightbold;
	    text-aligncenter;
	    color#FFF;
	}
#t7_y {
	    background-repeatno-repeat;
	    float:left;
	    width45px;
	    height:25px;
	    margin1px;
	    letter-spacing7px;
	    padding-top10px;
	    padding-right0px;
	    padding-bottom0px;
	    padding-left3px;
	    background-imageurl(images/vista1/btn_magenta.gif);
	}
#t7_d {
	    background-repeatno-repeat;
	    float:left;
	    width30px;
	    height:20px;
	    margin1px;
	    padding-right0px;
	    padding-bottom0px;
	    padding-left4px;
	    padding-top3px;
	    background-imageurl(../images/74.png);
	}
#t7_h {
	    background-repeatno-repeat;
	    float:left;
	    width30px;
	    height:20px;
	    margin1px;
	    letter-spacing7px;
	    padding-top3px;
	    padding-right0px;
	    padding-bottom0px;
	    padding-left4px;
	    background-imageurl(../images/74.png);
	}
#t7_m {
	    background-repeatno-repeat;
	    float:left;
	    width30px;
	    height:20px;
	    margin1px;
	    letter-spacing7px;
	    padding-top3px;
	    padding-right0px;
	    padding-bottom0px;
	    padding-left4px;
	    background-imageurl(../images/74.png);
	}
#t7_s {
	    background-repeatno-repeat;
	    float:left;
	    width30px;
	    height:20px;
	    margin1px;
	    letter-spacing7px;
	    padding-top3px;
	    padding-right0px;
	    padding-bottom0px;
	    padding-left4px;
	    background-imageurl(../images/74.png);
	}
#t7_labels {
	    width100%;
	    clear:both;
	    margin0px auto;
	}
.t7_labs {
	    font-size10px;
	    font-familyVerdanaArialsans-serif;
	    font-weightbold;
	    text-aligncenter;
	    color#F00;
	}
#t7_yl {
	    float:left;
	    width45px;
	    height:25px;
	    padding:0px;
	    margin0px;
	}
#t7_dl {
	    float:left;
	    width30px;
	    height:20px;
	    margin1px;
	    padding-top3px;
	    padding-right0px;
	    padding-bottom0px;
	    padding-left4px;
	}
#t7_hl {
	    float:left;
	    width30px;
	    height:20px;
	    margin1px;
	    padding-top3px;
	    padding-right0px;
	    padding-bottom0px;
	    padding-left4px;
	}
#t7_ml {
	    float:left;
	    width30px;
	    height:20px;
	    margin1px;
	    padding-top3px;
	    padding-right0px;
	    padding-bottom0px;
	    padding-left4px;
	}
#t7_sl {
	    float:left;
	    width30px;
	    height:20px;
	    margin1px;
	    padding-top3px;
	    padding-right0px;
	    padding-bottom0px;
	    padding-left4px;
	}
#defaultCountdown {
	    text-aligncenter;
	    height70px;
	    widthauto;
	    floatleft;
	}