total=10; for(var i=0; i<=total; i++){ trace(i); }
Category Archives: Programming
Load and Save of XML Documents
<?php //makes a new DomDocument Object with version 1.0 $dom = new DomDocument(“1.0”); //loads an XML Document from a string $dom->loadXML(“<root/>”); //loads an XML Document from the filesystem $dom->load(“examples/books.xml”); //sets output encoding $dom->encoding=“iso-8859-1”; //returns the XML Document as a string print htmlspecialchars($dom->saveXML()); //would save it to a file //print $dom->save(“filename.xml”);
Special Characters & Symbols in HTML
Alternatives The column on the left in the following table contains codes that do not work in all browsers. The codes in the column on the right do. So use the codes on the right for these symbols to avoid unpleasant surprises.
Making scrolling text with the use of the marquee tag on DIV
Scrolling upward text or vertical text. <div align=”center”> <marquee bgcolor=”#000080″ scrollamount=”2″ direction=”up” loop=”true” width=”35%”> <center> <font color=”#ffffff” size=”+1″><strong> THIS IS A COOL WAY<br> TO MAKE YOUR TEXT<br> SCROLL UPWARDS<br> <br> IT IS EASY AND FAST LOADING </strong></font> </center> </marquee></div>
CSS Alternate Colors Table Loop
CSS .rol_1{ background-color:#FFFFFF} .rol_2{ background-color:#CCCCCC} .rol_Hover{ background-color:#FFFF99} PHP Script On <TR> <?php do { ?> <tr class=”<?php echo ($ac_sw1++%2==0)?”rol_1″:”rol_2″; ?>” onmouseover=”this.oldClassName = this.className; this.className=’rol_Hover’;” onmouseout=”this.className = this.oldClassName;”> <td>loop</td> </tr> <?php } while ($row_travel_schedule = mysql_fetch_assoc($schedule)); ?>
CSS default Link Styles
<style type=”text/css”> <!– body,td,th { color: #FFFFFF; } a { font-size: 10px; color: #FFFFFF; } a:link { text-decoration: none; } a:visited { text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #CCCCCC; } a:active { text-decoration: none; color: #FFFFFF; } –> </style>