Diễn đàn Trái Tim Yên Bái 2024

 Quên mật khẩu
 Đăng ký
Xem: 4568|Trả lời: 1
Thu gọn cột thông tin

Tổng hợp một số java hay

[Lấy địa chỉ]
  • Tâm trạng hàng ngày
    Suy ngẫm
    22-4-2024 05:18 PM
  • Đã viết: 4 ngày

    [LV.2]Spam 2

    Đăng lúc 11-4-2008 07:15 PM | Xem tất |Chế độ đọc

    Mời bạn đăng ký để giao lưu kết bạn nhé <3

    Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký

    x
    1. <a href="ymsgr:sendIM?WindBows&m=Hello Nick" target="_blank" name="IM me" onMouseOver="window.status='IM me'; return true;" onMouseOut="window.status=''; return true;"><IMG alt="Yahoo! Status (online/Offline)" src="http://opi.yahoo.com/online?u=WindBows&m=g&t=0" border="0"></a>
    Sao chép mã



    Yahoo Instant Messenger Send IM
    1. <a href="ymsgr:sendIM?WindBows&m=Hello Nick" target="_blank" name="IM me" onMouseOver="window.status='IM me'; return true;" onMouseOut="window.status=''; return true;">IM me</a>
    Sao chép mã


    Headline

    1. <!-- TWO STEPS TO INSTALL HEADLINER:

    2.    1.  Add the onLoad event handler to the BODY tag
    3.    2.  Copy the specified code into the BODY of your HTML document  -->

    4. <!-- STEP ONE: Add this onLoad event handler to the BODY tag  -->


    5. <script language="JavaScript">
    6. <!--

    7. function SymError()
    8. {
    9.   return true;
    10. }

    11. window.onerror = SymError;

    12. //-->
    13. </script>

    14. <body onLoad="StartHeadliner()">

    15. <!-- STEP TWO: Put this code into the BODY of your HTML document  -->

    16. <script LANGUAGE="JavaScript">



    17. <!-- Original:  Jan Pijnacker <Jan_P@dds.nl> -->

    18. <!-- Begin
    19. typeWriterWait=120  // Typewriter delay
    20. blinkTextWait=1000        // Blinking delay
    21. blinkSpacesWait=300  // Blinking 'blank-spaces' delay
    22. blinkMax=3                          // how many times to blink
    23. expandWait=100        // expanding headliner delay
    24. scrollWait=90  // scrolling headliner delay
    25. scrollWidth=34          // characters in scroll display
    26. randomLines=false  // randomly choose lines?  (true or false)
    27. lineMax=7          // how many lines you have
    28. lines=new Array(lineMax)

    29. // Use this format for all the lines below:
    30. // (display text, url or mailto, frame name, effect, delay time)

    31. lines[1]=new Line("The JavaScript Headliner!", "http://www.piaster.nl/perspicacity/js/headliner", "", Blink, 500)
    32. lines[2]=new Line("This is a great JavaScript example - appropriately named ' The JavaScript Headliner ' !", "", "", Scroll, 1000)
    33. lines[3]=new Line("Wouldn't this be good on your site?", "", "", Static, 3500)
    34. lines[4]=new Line("Many ways to present information....", "", "", Expand, 2000)
    35. lines[5]=new Line("Each message can even take the visitor to different a URL when clicked !", "", "", Scroll, 3000)
    36. lines[6]=new Line("Click now to email the author", "mailto:Jan_P@dds.nl?subject=The Headliner", "", TypeWriter, 1500)
    37. lines[7]=new Line("Or here to go back to Messages", "http://messages.javascriptsource.com", "", Static, 3500)
    38. // Don't change these variables below  :-)
    39. lineText=""
    40. timerID=null
    41. timerRunning=false
    42. spaces=""
    43. charNo=0
    44. charMax=0
    45. charMiddle=0
    46. lineNo=0
    47. lineWait=0
    48. function Line(text, url, frame, type, wait) {
    49. this.text=text
    50. this.url=url
    51. this.frame=frame
    52. this.Display=type
    53. this.wait=wait
    54. }
    55. function StringFill(c, n) {
    56. var s=""
    57. while (--n >= 0) {
    58. s+=c
    59. }
    60. return s
    61. }
    62. function getNewRandomInteger(oldnumber, max) {
    63. var n=Math.floor(Math.random() * (max - 1) + 1)
    64. if (n >= oldnumber) {
    65. n++
    66. }
    67. return n
    68. }
    69. function getRandomInteger(max) {
    70. var n=Math.floor(Math.random() * max + 1)
    71. return n
    72. }
    73. function GotoUrl(url, frame) {
    74. if (frame != '') {
    75. if (frame == 'self') self.location.href=url
    76. else if (frame == 'parent') parent.location.href=url
    77. else if (frame == 'top') top.location.href=url
    78. else {
    79. s=eval(top.frames[frame])
    80. if (s != null) top.eval(frame).location.href=url
    81. else window.open(url, frame, "toolbar=yes,status=yes,scrollbars=yes")
    82.           }
    83.    }
    84. else window.location.href=url
    85. }
    86. function Static() {
    87. document.formDisplay.buttonFace.value=this.text
    88. timerID=setTimeout("ShowNextLine()", this.wait)
    89. }
    90. function TypeWriter() {
    91. lineText=this.text
    92. lineWait=this.wait
    93. charMax=lineText.length
    94. spaces=StringFill(" ", charMax)
    95. TextTypeWriter()
    96. }
    97. function TextTypeWriter() {
    98. if (charNo <= charMax) {
    99. document.formDisplay.buttonFace.value=lineText.substring(0, charNo)+spaces.substring(0, charMax-charNo)
    100. charNo++
    101. timerID=setTimeout("TextTypeWriter()", typeWriterWait)
    102. }
    103. else {
    104. charNo=0
    105. timerID=setTimeout("ShowNextLine()", lineWait)
    106.    }
    107. }
    108. function Blink() {
    109. lineText=this.text
    110. charMax=lineText.length
    111. spaces=StringFill(" ", charMax)
    112. lineWait=this.wait
    113. TextBlink()
    114. }
    115. function TextBlink() {
    116. if (charNo <= blinkMax * 2) {
    117. if ((charNo % 2) == 1) {
    118. document.formDisplay.buttonFace.value=lineText
    119. blinkWait=blinkTextWait
    120. }
    121. else {
    122. document.formDisplay.buttonFace.value=spaces
    123. blinkWait=blinkSpacesWait
    124. }
    125. charNo++
    126. timerID=setTimeout("TextBlink()", blinkWait)
    127. }
    128. else {
    129. charNo=0
    130. timerID=setTimeout("ShowNextLine()", lineWait)
    131.    }
    132. }
    133. function Expand() {
    134. lineText=this.text
    135. charMax=lineText.length
    136. charMiddle=Math.round(charMax / 2)
    137. lineWait=this.wait
    138. TextExpand()
    139. }
    140. function TextExpand() {
    141. if (charNo <= charMiddle) {
    142. document.formDisplay.buttonFace.value=lineText.substring(charMiddle - charNo, charMiddle + charNo)
    143. charNo++
    144. timerID=setTimeout("TextExpand()", expandWait)
    145. }
    146. else {
    147. charNo=0
    148. timerID=setTimeout("ShowNextLine()", lineWait)
    149.    }
    150. }
    151. function Scroll() {
    152. spaces=StringFill(" ", scrollWidth)
    153. lineText=spaces+this.text
    154. charMax=lineText.length
    155. lineText+=spaces
    156. lineWait=this.wait
    157. TextScroll()
    158. }
    159. function TextScroll() {
    160. if (charNo <= charMax) {
    161. document.formDisplay.buttonFace.value=lineText.substring(charNo, scrollWidth+charNo)
    162. charNo++
    163. timerID=setTimeout("TextScroll()", scrollWait)
    164. }
    165. else {
    166. charNo=0
    167. timerID=setTimeout("ShowNextLine()", lineWait)
    168.    }
    169. }
    170. function StartHeadliner() {
    171. StopHeadliner()
    172. timerID=setTimeout("ShowNextLine()", 2000)
    173. timerRunning=true
    174. }
    175. function StopHeadliner() {
    176. if (timerRunning) {
    177. clearTimeout(timerID)
    178. timerRunning=false
    179.    }
    180. }
    181. function ShowNextLine() {
    182. if (randomLines) lineNo=getNewRandomInteger(lineNo, lineMax)
    183. else (lineNo < lineMax) ? lineNo++ : lineNo=1
    184. lines[lineNo].Display()
    185. }
    186. function LineClick(lineNo) {
    187. document.formDisplay.buttonFace.blur()
    188. if (lineNo > 0) GotoUrl(lines[lineNo].url, lines[lineNo].frame)
    189. }
    190. with (document) {
    191. write('<center><form name="formDisplay"><input type="button"')
    192. write('name="buttonFace" value="The JavaScript Source presents...."')
    193. write('onClick="LineClick(lineNo)"></input></form></center>')
    194. }
    195. // End -->
    196. </SCRIPT>

    197. <p><center>

    198. </center><p>

    199. <!-- Script Size:  5.69 KB  -->

    Sao chép mã



    Evil No Right Click

    1. </style>
    2. <script language=JavaScript>
    3. document.onmousedown=click
    4. var times=0
    5. var times2=10
    6. function click() {
    7. if ((event.button==2) || (event.button==3)) {
    8. if (times>=1) { bye() }
    9. alert("No right clicking!!!!!! don't do it again..");
    10. times++ } }
    11. function bye() {
    12. alert("I said NO right clicking! click ok to exit LMAO!");
    13. bye() }
    14. </SCRIPT>
    Sao chép mã



    No Right Click

    1. <script LANGUAGE="JavaScript">
    2. <!--
    3. function warn() {
    4.         if (event.button==2) {
    5.   alert(' Make ur own damn site!')
    6.         }
    7. }
    8. document.onmousedown = warn
    9. // -->
    10. </SCRIPT>
    Sao chép mã


    No Right Click 2

    1. <script language=JavaScript>
    2. var message="";
    3. ///////////////////////////////////
    4. function clickIE() {if (document.all) {(message);return false;}}
    5. function clickNS(e) {if
    6. (document.layers||(document.getElementById&&!document.all)) {
    7. if (e.which==2||e.which==3) {(message);return false;}}}
    8. if (document.layers)
    9. {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    10. else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    11. </script>
    Sao chép mã


    Drop Down Menu
    1. <script LANGUAGE="JavaScript">
    2. <!-- Begin
    3. function formHandler(form){
    4. var URL = document.form.site.options[document.form.site.selectedIndex].value;
    5. window.location.href = URL;
    6. }
    7. // End -->
    8. </SCRIPT>

    9. <center>
    10. <form name="form">
    11. <select name="site" size=1 onChange="java script:formHandler()">
    12. <option value="">Go to...

    13. <!-- Option 1 -- To have the pull down menu go to your own pages, change the URL within the quotation marks and the link name.  -->
    14. <!-- Option 2 -- You may remove or add entire lines to increase or decrease the number of links. -->
    15. <option value="url here">link here
    16. <option value="url here">link here
    17. <option value="url here">link here
    18. <option value="url here">link here
    19. <option value="url here">link here

    20. </select>
    21. </form>
    22. </center>
    Sao chép mã


    Time of day Greeting
    1. <script language=JavaScript>





    2. <!-- Begin

    3. datetoday = new Date();

    4. timenow=datetoday.getTime();

    5. datetoday.setTime(timenow);

    6. thehour = datetoday.getHours();

    7. if (thehour > 18) display = "Evening";

    8. else if (thehour >12) display = "Afternoon";

    9. else display = "Morning";

    10. var greeting = ("Good " + display + "!");

    11. document.write(greeting);

    12. //  End -->





    13. </SCRIPT>
    Sao chép mã


    E-Mail
    1. <!-- TWO STEPS TO INSTALL E-MAIL LINK:

    2.   1.  Copy the coding into the BODY of your HTML document
    3.   2.  Add the last code into a document called "EmailLink.js"  -->

    4. <!-- STEP ONE: Paste this code into the BODY of your HTML document  -->

    5. <BODY>

    6. <div align="center">
    7. <script language="JavaScript" src="EmailLink.js">
    8. <!-- Original:  Happy Smart -->
    9. <!-- Web Site:  http://happysmart.net -->
    10. </script>
    11. </div>

    12. <p><center>

    13. </center><p>

    14. <!-- Script Size:  0.89 KB -->


    15. <!-- STEP TWO: Paste this code into a document called "EmailLink.js"  -->
    16. <!-- Put it in the same directory as the HTML document with the above code  -->

    17. function EmailLink(){
    18. window.location = "mailto:"+"?subject=I thought this link might interest you." + "&body="+document.title+"  "+window.location;
    19. }
    20. document.write('<INPUT class="select" TYPE="button" VALUE="E-mail this link to a friend" onClick="EmailLink()"></FORM>')

    Sao chép mã


    Auto Maximise

    1. <script Language="JavaScript1.2">
    2. <!--
    3. top.window.moveTo(0,0);
    4. if (document.all) {top.window.resizeTo(screen.availWidth,screen.availHeight);}
    5. else if (document.layers||document.getElementById) {
    6. if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
    7. top.window.outerHeight = screen.availHeight;
    8. top.window.outerWidth = screen.availWidth;
    9. }
    10. }
    11. -->
    12. </Script>
    Sao chép mã


    Background Music

    1. <BGSound Src="Your.mid" Loop="-1">
    2. <!-- Plays background music, -1 is neverending loop,
    3. or change to a custom lenght to be plated -->
    Sao chép mã

    Cảm ơn

    Số người tham gia 2Thanks +2 Thu lại Lý do
    tdnbsun + 1
    RuBiVn + 1

    Xem tất cả

    Đăng lúc 16-10-2009 05:56 PM | Xem tất
    tất cả mọi người hãy chung tay vì 1 Trái Tim Yên Bái đầy vui vẻ và hạnh phúc nào các bạn Teen ơi !
    Bạn phải đăng nhập mới được đăng bài Đăng nhập | Đăng ký

    Quy tắc điểm

    Đóng

    Thông báoTrước /1 Sau

    Phòng tối|Lưu trữ|Diễn đàn Yên Bái 2024 Community Guidelines |

    GMT+7, 6-12-2026 02:06 AM , Processed in 0.023144 second(s), 20 queries .

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

    Trả lời nhanh Lên trên Trở lại danh sách