Java Script : Membuat Pengumuman dan Iklan

File : stayontop.js

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

<script type="text/javascript" src="stayontop.js">

* Stay on Top content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more


<script type="text/javascript">

    targetid: 'examplediv',
    orientation: 3,
    position: [5, 10],
    fadeduration: [1000, 1000],
    frequency: 0.95,
    hideafter: 15000

    targetid: 'ajaxdiv',
    orientation: 2,
    position: [20, 100],
    hideafter: 10000,
    externalsource: 'bc.htm'


File bc.html
<div id="ajaxdiv" style="width:160px; border:1px solid black; padding: 10px; background:#D9FAFF"> <div style="text-align:center"><img src="http://i40.tinypic.com/2agthk6.gif" style="border-width:0" /></a></div> <p><a href="http://www.hellobc.com/en-CA/default.htm">British Columbia</a> is the westernmost of Canada's provinces and is famed for its natural beauty. It's capital is Victoria, located at the southeastern tip of Vancouver Island. BC's most populous city is Vancouver, located in southwest corner of the BC mainland called the Lower Mainland. </p> <p>This content disappears in <b>10</b> seconds. <a href="javascript:alwaysOnTop.hidediv('ajaxdiv')">Click here</a> to hide it now.</p> </div>

Java Script : Membuat Pengumuman dan Iklan Rating: 4.5 Diposkan Oleh: Miftah Budi

0 komentar:

Post a Comment