home *** CD-ROM | disk | FTP | other *** search
/ PC User 2005 May / CD / PCU0505CD.iso / software / full / coffecup / files / html2005.exe / %MAINDIR% / Javascript / above-the-link-blink.xml next >
Encoding:
Text File  |  2005-02-16  |  2.0 KB  |  64 lines

  1.  
  2. <ccresource>
  3.   <cctitle>
  4. Above the Link Blink
  5.   </cctitle>
  6.   <cccategory>
  7. Browser
  8.   </cccategory>
  9.   <ccDescription>
  10.     This code will display a blinking bar above a text link.
  11.   </ccdescription>
  12.   <ccinstructions>
  13.   The code goes only inside the BODY tags.  You can change the items below to suit your needs.
  14.   </ccinstructions>
  15.   <ccheadcontent>
  16.  
  17.   </ccheadcontent>
  18.   <ccbodycontent>
  19.    <script>
  20. <!-- Write here the message that you want to write. Write the information between the "", like in the example shown below-->
  21. mess94799="Free Downloads at CoffeeCup Software!"
  22. <!-- Write here the url or the source of the link that you want to write. Write the information between the "", like in the example shown below-->
  23. link94799="http://www.coffeecup.com/software"
  24. <!--Write here the font color. Write the information between the "", like in the example shown below-->
  25. f194799="black"
  26. <!-- Write here the background color. Write the information between the "", like in the example shown below-->
  27. f294799="white"
  28. <!-- Write here the font size. Write the information between the "", like in the example shown below-->
  29. f394799="20px"
  30. <!-- Write here the speed of the flashing in seconds or fractions. Write the information between the "", like in the example shown below-->
  31. f594799=".5"
  32. <!-- Don't edit from here on -->
  33. document.write("<span style='cursor:hand;font-size:"+f394799+";color:"+f194799+";background-color:"+f294799+"' id='th94799' onclick=location.href='"+link94799+"'>"+mess94799+"</span>")
  34. y94799=0
  35. function beg94799(){
  36. if (y94799<1){
  37. y94799++
  38. }
  39. else{
  40. y94799=0
  41. }
  42. if (y94799==1){
  43. th94799.style.textDecoration="overline"
  44. }
  45. else{
  46. th94799.style.textDecoration="none"
  47. }
  48. setTimeout("beg94799()",f594799*1000)
  49. }
  50. </script>
  51. <img src='b' onerror=beg94799() style='display:none'>
  52.  
  53.   </ccbodycontent>
  54.   <ccelementcontent>
  55.   
  56.    <ccelementname></ccelementname>
  57.    <ccelementaction></ccelementaction>
  58.    
  59.   </ccelementcontent>
  60.   <ccextradata>
  61.  
  62.   </ccextradata>
  63. </ccresource>
  64.