home *** CD-ROM | disk | FTP | other *** search
/ PC World 2004 June / PCWorld_2004-06_cd.bin / komunikace / slimb / sbsetup.exe / $_14326_ / sbrowser.chm / replace.js < prev    next >
Text File  |  2004-04-18  |  721b  |  26 lines

  1. ReplaceKeywords()
  2. function ReplaceKeywords()
  3. {
  4.     ReplaceKeyword("ProductName")
  5.     ReplaceKeyword("CompanyName")
  6.     ReplaceKeyword("FullCompanyName")
  7.     ReplaceKeyword("FullProductName")
  8.     ReplaceKeyword("ProductHomepage")
  9.     ReplaceKeyword("FeedbackEmail")
  10. }
  11.  
  12. function ReplaceKeyword(sKeyword)
  13. {
  14.     var ProductName="SlimBrowser"
  15.     var CompanyName="FlashPeak"
  16.     var FullCompanyName="FlashPeak Inc."
  17.     var FullProductName=CompanyName+" "+ProductName
  18.     var ProductHomepage="www.flashpeak.com"    
  19.     var FeedbackEmail="webmaster@flashpeak.com"
  20.     
  21.     var re=eval("/\\$"+sKeyword+"/gi");
  22.     document.body.innerHTML=document.body.innerHTML.replace(re,eval(sKeyword))
  23.     document.title=document.title.replace(re,eval(sKeyword))
  24. }
  25.  
  26.