Tutorial Php

  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Tutorial Php as PDF for free.

More details

  • Words: 716
  • Pages: 7
Membuat script untuk menghitung jumlah counter

//bulan sekarang //Tahun sekarang //hari ini //cek jumlah hari tahun sekarang //style untuk table //table untuk menulis tanggal sekarang //table untuk menulis hari /* mengecek tanggal 1 bulan sekarang ada pada hari ke berapa kemudian tambahkan cell td sebanyak var $s */ // memulai penulisan tanggal // jika nilai $d (tanggal) adalah hari minggu (0) dibuat baris baru //default warna huruf // jika tanggal adalah hari minggu warna huruf merah // jika tanggal adalah hari sabtu warna huruf biru

//jika tanggal adalah hari sabtu (6) akhiri baris

//akhir table

MEMBUAT JAM Jam Digital <script type=”text/javascript”> // 1 detik = 1000 window.setTimeout(“waktu()”,1000); function waktu() { var tanggal = new Date(); setTimeout(“waktu()”,1000); document.getElementById(“output”).innerHTML = tanggal.getHours()+”:”+tanggal.getMinutes()+”:”+tanggal.getSeconds(); }
MEMBUAT TEKS LAMPU NEON

<script language="JavaScript" type="text/javascript"> ') for (m=0;m<message.length;m++) document.write('<span id="neonlight'+m+'">'+message.charAt(m)+'') document.write('') } else document.write(message) function crossref(number){ var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number) return crossobj } function neon(){

if (n==0){ for (m=0;m<message.length;m++) //eval("document.all.neonlight"+m).style.color= neonbasecolor crossref(m).style.color=neonbasecolor } crossref(n).style.color=neontextcolor if (n<message.length-1) n++ else{ n=0 clearInterval(flashing) setTimeout("beginneon()",1500) return } } function beginneon(){ if (document.all||document.getElementById) flashing=setInterval("neon()",flashspeed) } beginneon() //-->

MEMBUAT TULISAN PELANGI Efek Tulisan seperti Pelangi <script language="JavaScript" type="text/javascript"> ' + text + '') var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight } else document.write(text) var hex=new Array("00","14","28","3C","50","64","78","8C",

"A0","B4","C8","DC","F0") var r=1 var g=1 var b=1 var seq=1 function changetext(){ rainbow="#"+hex[r]+hex[g]+hex[b] storetext.style.color=rainbow } function change(){ if (seq==6){ b-if (b==0) seq=1 } if (seq==5){ r++ if (r==12) seq=6 } if (seq==4){ g-if (g==0) seq=5 } if (seq==3){ b++ if (b==12) seq=4 } if (seq==2){ r-if (r==0) seq=3 } if (seq==1){ g++ if (g==12) seq=2 } changetext() } function starteffect(){

if (document.all||document.getElementById) flash=setInterval("change()",speed) } starteffect() //-->
SCROOLER TEKS OTOMATIS Scroller TextArea secara Otomatis <script language="JavaScript" type="text/javascript">
var i = 0; var cr="\r\n" if (window.document) { var cr="\n" } else { ScreenLine[11]=" Anda perlu upgrade browser yang digunakan." } if (window.document) { ScreenLine[10]="Browser Opera yang digunakan menunjukkan pergerakan scroll button ketika Anda" ScreenLine[12]=" tetapi frame tidak terlihat untuk di scroll."+cr } // set up ScreenLines untuk tampilan for (x = msgCnt; 1 <= x; x--) { ScreenLine[x+pagLen] = ScreenLine[x] + cr; } for (x = 1; x <= (pagLen); x++) { ScreenLine[x] = " " +cr; } msgCnt += pagLen; msg = ScreenLine[1]; // akhir setup function DisplayScroll() { if (msgNum < pagLen) { delay = typeSpeed; } else { delay = lineDelay; } ChangeMsg(); outMsg += msg; self.document.forms[0].elements[0].value = outMsg; timerPS = setTimeout("DisplayScroll()",delay); } function ChangeMsg() { msgNum++; if (msgCnt < msgNum) { msgNum = 1; } if (pagLen <= tally) { chgPage(); } tally++; msg = ScreenLine[msgNum];

} function chgPage() { if (msgNum < pagLen) { linPntr = msgCnt - pagLen + msgNum + 1; } else { linPntr = msgNum - (pagLen - 1); } outMsg = ScreenLine[linPntr]; for (p = 1; p < (pagLen - 1); p++) { linPntr++; if (msgCnt < linPntr) { linPntr = 1; } outMsg += ScreenLine[linPntr]; } } function quitDisplay() { self.document.forms[0].elements[0].value = "Scroll halaman untuk Anda hari ini!"; } //-->

Related Documents

Tutorial Php
April 2020 9
Php Tutorial
April 2020 6
Tutorial Php
June 2020 11
Php Tutorial
November 2019 36
Php Tutorial
July 2020 25
Php Tutorial
April 2020 23