File: sample.html

Recommend this page to a friend!
  Classes of Dixan Santiesteban   OS Info   sample.html   Download  
File: sample.html
Role: Example script
Content type: text/plain
Description: Sample page
Class: OS Info
Show the user machine OS icon using sprites
Author: By
Last change:
Date: 12 years ago
Size: 843 bytes
 

Contents

Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script language="javascript" src="http://code.jquery.com/jquery.min.js"></script> <script type="text/javascript" src="os_info.class.js"></script> <style> LABEL { display:inline-block; } </style> <title>Documento sin t&iacute;tulo</title> </head> <body> </body> </html> <script> $(function(){ var a=new os_info(); for (var t=0; t<a.osn.length; ++t){ var osname=a.osn[t]; osname=(t==a.getos_id())?"<b>"+osname+" <....... (current) </b> ":osname; $(document.body).append(t+'.- <label class="os_'+t+'">&nbsp;</label> '+osname+"<br>"); } }) </script>