Artikel ini menjelaskan efek tampilan jendela ponsel yang sederhana dan mudah digunakan. Bagikan untuk referensi Anda, sebagai berikut:
html:
<style type = "text/css">. fdbontel {width: 100%; Tinggi: 53px; Posisi: diperbaiki; Latar Belakang:#0052AE; Teks-Align: tengah; Kiri: 0; Bawah: 0; z-index: 999; } .fdonline {latar belakang: url (index/images/online.png) no-repeat; Lebar: 255px; Tinggi: 181px; Posisi: diperbaiki; Kiri: 50%; margin-kiri: -128px; Atas: 40%; z-index: 999; Border-Radius: 15px; Kotak-Shadow: 0 0 20px RGBA (10, 2, 4, 0.75);}. Fdonline .fdoclose {width: 44px; Tinggi: 44px; Tampilan: Blok; margin-top: -17px; margin-kanan: -6px;}. fdonline .fdotel {latar belakang:#cf3; Lebar: 127px; Tinggi: 58px; Tampilan: Blok; margin-top: 123px;}. fdonline .fdoon {latar belakang:#036; Lebar: 128px; Tinggi: 58px; Tampilan: Blok; margin-top:96px;}</style><div> <img src="index/images/fdTel.gif" usemap="#Maps"> <map name="Maps" id="Maps"> <area shape="rect" coords="2,2,79,52" onClick="openZoosUrl();"> <area shape="rect" coords = "77,2,166,52" href = "Telp: 0855-8253310"> <Area bentuk = "rect" coords = "166,4,242,51" onClick = "openzoosurl ();"> <bentuk area = "rect" coordinates = "248.58 () () () <area =" rect "coordinates =" 248.58 (); </pap> </div> <div id = "fdonline"> <a href = "###" ontClick = "closeOnline ();"> <img src = "index/images/closebtn.png"> </a> <a href = "###"> </a> <a href = "#">#"> <##"> </a> </a> <a href = "#">#"> <(a href ="#"JS:
// JavaScript DocumentDocument.Writeln ("<type style =/" text/css/">"); document.writeln (". Fdbontel {width: 100%; tinggi: 53px; posisi: tetap; latar belakang:#0052ae; teks-selign: tengah; kiri: 0; 0; z-indeks:#0052ae; Teks-ALIGN: Center; kiri: 0; 0; z-index: 999; Text-align: center; kiri: 0; 0; z-index: 999; Text-align: center; kiri: 0; 0; z-index: 999; }");document.writeln(".fdOnline{ background:url(index/images/online.png) no-repeat; width:255px; height:181px; position:fixed; left:50%; margin-left:-128px; top:40%; z-index:999; border-radius: 15px; box-shadow: 0 0 20px rgba(10, 2, 4, 0,75);} "); document.writeln (". FDonline .fdoclose {width: 44px; tinggi: 44px; display: blok; margin-top: -17px; margin-right: -6px;}"); Document.writeln (". Fdonline .fdotel {lebar: 127px; tinggi: 58px; display: blok; margin-top: 123px;}"); document.writeln (". fdonline .fdoon {width: 128px; tinggi: 58px; display: block; margin; class =/"fdbontel/"> "); document.writeln (" <img src =/"index/gambar/fdtel.gif/" usemap =/"#peta/"> "); document.writeln (" <nama peta =/"peta/" "); Document.writeln (" <nama peta = " id =/"peta/"> "); document.writeln (" <Area bentuk =/"rect/" coords =/"2,2,79,52/" onclick =/"openzoosurl ();/"> "); document.writeln (" <area =/"rect/" coords =/"77.2 77.2 href =/"tel: 0855-8253310/"> "); document.writeln (" <Area bentuk =/"rect/" coords =/"166,4,242,51/" onClick =/"OpenZoosurl ();/"> "); document.wrrriteln (",/", ",", ", "", ",/",/",/",/"COOK/" "," OnClick =/"OpenZoosUrl ();/"> "); document.writeln (" </peta> "); document.writeln (" </div> "); document.writeln (" <div class =/"fdonline/" id =/"fdonline/"> "); Document.writeln (" <"haP =" "" f_r/"onClick =/" closeOnline ();/"> <img src =/" index/gambar/closeBtn.png/"width =/" 44/"height =/" 44/"> </a>"); document.writeln ("<a href =/" ##/"class =/" fdotel (a href =/"##/" class =/"fdotel (a href =/" ##/"class =/" class =/"class =/" fdoteln (a href =/"##/" class =/"class =/" class =/"fdot <a href =/"###/" class =/"fdoon f_r/"> </a> "); document.writeln (" </div> "); function showonline () {if (document.geteLementById (" fdonline ")) {if document.getElementByid (" fdonline "). document.getElementById ("fdonline"). style.display = "block"; }}} function closeonline () {document.geteLementById ("fdonline"). style.display = "none"; setInterval (chkswt, 30000);}; $ (function () {setInterval (showOnline, 30000);});Gambar reproduksi:
For more information about JavaScript related content, please check out the topics of this site: "Summary of JavaScript Traversal Algorithm and Skills", "Summary of JavaScript Switching Special Effects and Skills", "Summary of JavaScript Search Algorithm Skills", "Summary of JavaScript Animation Special Effects and Skills", "Summary of JavaScript Errors and Debugging Skills", "Summary of JavaScript Data Structures dan keterampilan algoritma "dan" Ringkasan Penggunaan Operasi Matematika JavaScript "
Saya harap artikel ini akan membantu pemrograman JavaScript semua orang.