PCToOLs
Un forum pentru fiecare!!
|
Lista Forumurilor Pe Tematici
|
PCToOLs | Reguli | Inregistrare | Login
POZE PCTOOLS
Nu sunteti logat.
|
Nou pe simpatie: Jamieknv la Simpatie.ro
 | Femeie 24 ani Bucuresti cauta Barbat 26 - 55 ani |
|
b3n1am1n
Administrator
 Inregistrat: acum 17 ani
Postari: 3407
|
|
This is a cross browser "post-it note" script. Use it to broadcast special events or news on your site. Easily dismissed, the script also allows you to specify the frequency of its appearance (either once per browser session, or every time the page containing it is loaded). And last but not least, in IE4/NS6, you can drag the note around.
Copy the below into the HEAD section of your page:
<style> <!--
/*Post-it note script- by Scripturi Visit Scripturi ) for script Credit must stay intact for use*/
#postit{ position:absolute; width:250; padding:5px; background-color:lightyellow; border:1px solid black; visibility:hidden; z-index:100; cursor:hand; }
--> </style>
Moving on, insert the below to the BODY section, preferably at the bottom of page:
<div id="postit" style="left:150px;top:150px"> <div align="right"><b><a href="javascript:closeit()">[Close It]</a></b></div>
<!--INSERT YOUR CONTENT HERE-->
<b>Reminder:</b><br> <p><font size="2" face="Arial"><a href="http://scripturi.3xforum" target="_new">Looking for free Java applets?<br> </a>Be sure to check out our sister site FreeScripts</font></p> <p><font size="2" face="Arial"><a href="http://scripturi.3xforum" target="_new">Looking for more scripts?<br> </a>Visit our partner Scripturi.3xforum.ro for free, original DHTML scripts and components.</font></p>
<!--END YOUR CONTENT HERE-->
</div>
<script>
//Post-it only once per browser session? (0=no, 1=yes) //Specifying 0 will cause postit to display every time page is loaded var once_per_browser=0
///No need to edit beyond here///
var ns4=document.layers var ie4=document.all var ns6=document.getElementById&&!document.all
if (ns4) crossobj=document.layers.postit else if (ie4||ns6) crossobj=ns6? document.getElementById("postit" : document.all.postit
function closeit(){ if (ie4||ns6) crossobj.style.visibility="hidden" else if (ns4) crossobj.visibility="hide" }
function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; }
function showornot(){ if (get_cookie('postdisplay')==''){ showit() document.cookie="postdisplay=yes" } }
function showit(){ if (ie4||ns6) crossobj.style.visibility="visible" else if (ns4) crossobj.visibility="show" }
if (once_per_browser) showornot() else showit()
</script>
<script language="JavaScript1.2">
//drag drop function for ie4+ and NS6//// /////////////////////////////////
function drag_drop(e){ if (ie4&&dragapproved){ crossobj.style.left=tempx+event.clientX-offsetx crossobj.style.top=tempy+event.clientY-offsety return false } else if (ns6&&dragapproved){ crossobj.style.left=tempx+e.clientX-offsetx crossobj.style.top=tempy+e.clientY-offsety return false } }
function initializedrag(e){ if (ie4&&event.srcElement.id=="postit"||ns6&&e.target.id=="postit" { offsetx=ie4? event.clientX : e.clientX offsety=ie4? event.clientY : e.clientY
tempx=parseInt(crossobj.style.left) tempy=parseInt(crossobj.style.top)
dragapproved=true document.onmousemove=drag_drop } } document.onmousedown=initializedrag document.onmouseup=new Function("dragapproved=false"
</script>
_______________________________________ 1) Esti pe net 2) Esti pe Situl MediasH 3) Imi citesti semnatura 5) Nu ai observat ca lipseste punctul 4 6) Tocmai ai verificat daca exista punctul 4 sau nu 7) Zambesti, sau chiar razi !





|
|
| pus acum 17 ani |
|