Css based on the background of conversion and js

Related Tags:

  <SCRIPT Language=JavaScript> ... 

  <! - ---------------------------------------------- --------- -> 
  <! - StyleSheet Selector - (c) 2001-2004 qwilk@desktopian.org -> 
  <! - ---------------------------------------------- --------- -> 

  Var dtoDesign =''; 
  Var search = 'dtoDesign ='; 
  If (document.cookie.length> 0) 
  (... 
  Offset = document.cookie.indexOf (search); 
  If (offset! = -1) 
  (... 
  Offset + = search.length; 
  End = document.cookie.indexOf (";", offset); 
  If (end == -1) = document.cookie.length end; 
  DtoDesign = (unescape (document.cookie.substring (offset, end))); 
  ) 
  ) 

  If (dtoDesign == "green") document.write ( "<link rel='StyleSheet' href='/css/dto_green.css' type='text/css'>"); 
  Else if (dtoDesign == "blue") document.write ( "<link rel='StyleSheet' href='/css/dto_blue.css' type='text/css'>"); 
  Else if (dtoDesign == "red") document.write ( "<link rel='StyleSheet' href='/css/dto_red.css' type='text/css'>"); 
  Else if (dtoDesign == "brown") document.write ( "<link rel='StyleSheet' href='/css/dto_brown.css' type='text/css'>"); 
  Else if (dtoDesign == "grey") document.write ( "<link rel='StyleSheet' href='/css/dto_grey.css' type='text/css'>"); 
  Else if (dtoDesign == "coolblue") document.write ( "<link rel='StyleSheet' href='/css/dto_coolblue.css' type='text/css'>"); 
  Else if (dtoDesign == "wcam") document.write ( "<link rel='StyleSheet' href='/css/dto_wcam.css' type='text/css'>"); 
  Else document.write ( "<link rel='StyleSheet' href='/css/dto_wcam.css' type='text/css'>"); 

  Function SelectDesign (name) 
  (... 
  If (name == "Green") document.cookie = "dtoDesign = green; expires = Saturday, 16-Apr-11 00:00:00 GMT"; 
  If (name == "Blue") document.cookie = "dtoDesign = blue; expires = Saturday, 16-Apr-11 00:00:00 GMT"; 
  If (name == "Red") document.cookie = "dtoDesign = red; expires = Saturday, 16-Apr-11 00:00:00 GMT"; 
  If (name == "Brown") document.cookie = "dtoDesign = brown; expires = Saturday, 16-Apr-11 00:00:00 GMT"; 
  If (name == "Grey") document.cookie = "dtoDesign = grey; expires = Saturday, 16-Apr-11 00:00:00 GMT"; 
  If (name == "CoolBlue") document.cookie = "dtoDesign = coolblue; expires = Saturday, 16-Apr-11 00:00:00 GMT"; 
  If (name == "WinterCamouflage") document.cookie = "dtoDesign = wcam; expires = Saturday, 16-Apr-11 00:00:00 GMT"; 
  Window.location.reload (); 
  ) 

  <! - ---------------------------------------------- ---- -> 

  Function addSPanel () (... 
  If ((typeof window.sidebar == "object") & & (typeof 
  Window.sidebar.addPanel == "function")) 
  (... 
  Window.sidebar.addPanel ( "dto Search" 
  "Http://desktopian.org/q/searchtab.shtml ","");// search 
  ) 
  Else 
  (... 
  Alert ( "Your browser does not appear to have a sidebar! Download Mozilla!"); 
  ) 
  ) 
  </ SCRIPT> 
  <! - ---------------------------------------------- ---- -> 
  <META Content="MSHTML 6.00.2900.3059" name=GENERATOR> </ HEAD> 
  <BODY text = # # ffffff vLink 57af74 aLink = = = 57af74 link # # # 053015 = 57af74 bgColor 
  TopMargin = 5> 
  <TABLE Width="100%"> 
<TBODY>
<TR>
  <TD Align=right> </ TD> </ TR> </ TBODY> </ TABLE> 
  <TABLE CellSpacing=10 cellPadding=0 width="100%" border=0> 
<TBODY>
<TR>
  <TD VAlign=top align=left> <! - ------------------------------------- ----------------------- -> 
  <TABLE CellSpacing=0 cellPadding=0 width="100%" border=0> 
<TBODY>
<TR>
  <TD Class=upperleft2> <IMG 
  Src = "desktopian_org climbing the path to desktop perfection.files / fill.gif" 
  Width = 4> </ TD> 
  <TD Class=lowerfill> <IMG Height = 6 
  Src = "desktopian_org climbing the path to desktop perfection.files / fill.gif" 
  Width = 10> </ TD> 
  <TD Class=lowerfill> <IMG 
  Src = "desktopian_org climbing the path to desktop perfection.files / fill.gif"> </ TD> 
  <TD Class=lowerfill> <IMG height = 6 
  Src = "desktopian_org climbing the path to desktop perfection.files / fill.gif" 
  Width = 10> </ TD> 
  <TD Class=upperright2> <IMG 
  Src = "desktopian_org climbing the path to desktop perfection.files / fill.gif" 
  Width = 4> </ TD> </ TR> 
<TR>
  <TD Class=fill colSpan=5> <IMG 
  Src = "desktopian_org climbing the path to desktop perfection.files / fill.gif"> </ TD> </ TR> 
<TR>
  <TD Class=sidefill colSpan=2> <IMG 
  Src = "desktopian_org climbing the path to desktop perfection.files / fill.gif"> </ TD ><!-- ---------- -> 
  <TD Class=links align=left> <! - ---------- -> 
  <TABLE CellSpacing=0 cellPadding=0 width="100%" border=0> 
<TBODY>
<TR>
  <TD Class=left rowSpan=2> 
<TABLE>
<TBODY>
<TR>
  <TD Class=logo> <A href = "http://desktopian.org/" 
  Target = _top> <IMG height = 76 
  Src = "desktopian_org climbing the path to desktop perfection.files / fill.gif" 
  Width = 378 align = absMiddle 
  Border = 0> </ A> </ TD> </ TR> </ TBODY> </ TABLE> </ TD> 
  <TD Class=topright> 
  <SCRIPT Language=JavaScript> ... 
  Function addPanel () (... 
  If ((typeof window.sidebar == "object") & & (typeof 
  Window.sidebar.addPanel == "function")) 
  (... 
  Window.sidebar.addPanel ( "Desktopian" 
  "Http://desktopian.org/why/mozilla_sidebar.php ",""); 
  ) 
  Else 
  (... 
  Alert ( "Your browser does not appear to have a sidebar! Download Mozilla!"); 
  ) 
  ) 
  </ SCRIPT> 

  Quoted by: 
<A
  Href = "javascript: SelectDesign ( 'Green')">< IMG 
  style = "BACKGROUND-COLOR: # 558065" 
  Alt = "* is * The grass greener on the other side!" 
  Src = "desktopian_org climbing the path to desktop perfection.files / dsgn_green.gif" 
  Align = absMiddle border = 0> 
  </ A> 


Related articles:

In Dreamweaver insert background music method
  Like many Pacific Networking Academy received the Internet letter, the letter questions how Dreamweaver insert background music, let me now introduce to you one of several background music insertion method, and allow more people to grasp it.    First, a direct insertion method. Nee...
Magical Effect VBScript homemade IE toolbar button
  IE Toolbar button is not all Microsoft's patent, as to its ordinary users to customize, add to the button set up as add, a lot of information on all introduced.    Specific way to achieve either of two, first, the use of the lengthy and complex procedures VC or VB code, which fo...
Fireworks brilliant examples: mapping the planet
  Tools: fireworks 8.0    Filter: Eye CANDAY 4000 (Chinese Version), fireworks onboard Edges filter, Aline skin xenofex2 (Chinese Version) [Note: In addition Edges filter, and other filters required to be installed separately fireworks Plug-directory. Ins folder can use in fireworks...
Personal websites five common ills
  1, as too complex and not subject    To do so, as also, the results on the Web site to make messy, incomprehensible, the whole of a hodgepodge, it is China's personal website, especially the novice common.    This essay a bit like doing, and sometimes watching this w...
Flash painting skills: multi-use interactive software [Flash Video Guide]
  The Collected Works of Flash Flash Video Tutorial examples Video Tutorial    Full-screen viewing or download. Swf files  ...