Add to Google

Sticky Note - Script

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

Sticky Note - Script

alexia
Yes Its Cool Script For regsier Alert for Forums biggrin.gif I Use It For Example Alert To User To Regsiter In Forum huh.gif Copy this Code to <head>
CODE
<style type="text/css">

#fadeinbox{
position:absolute;
width: 300px;
left: 0;
top: -400px;
border: 2px solid black;
background-color: DarkBlue;
padding: 4px;
z-index: 100;
visibility:hidden;
}

</style>


<script type="text/javascript">

//Specify display mode. 3 possible values are:
//1) "always"- This makes the fade-in box load each time the page is displayed
//2) "oncepersession"- This uses cookies to display the fade-in box only once per browser session
//3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer...
// For example, 2 would display the box about (1/2) 50% of the time the page loads.

var displaymode="always"

var enablefade="yes" //("yes" to enable fade in effect, "no" to disable)
var autohidebox=["yes", 5] //Automatically hide box after x seconds? [yes/no, if_yes_hide_after_seconds]
var showonscroll="yes" //Should box remain visible even when user scrolls page? ("yes"/"no)
var IEfadelength=1 //fade in duration for IE, in seconds
var Mozfadedegree=0.05 //fade in degree for NS6+ (number between 0 and 1. Recommended max: 0.2)

////////No need to edit beyond here///////////

if (parseInt(displaymode)!=NaN)
var random_num=Math.floor(Math.random()*displaymode)

function displayfadeinbox(){
var ie=document.all && !window.opera
var dom=document.getElementById
iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
objref=(dom)? document.getElementById("fadeinbox") : document.all.fadeinbox
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
var docwidth=(ie)? iebody.clientWidth : window.innerWidth
docheight=(ie)? iebody.clientHeight: window.innerHeight
var objwidth=objref.offsetWidth
objheight=objref.offsetHeight
objref.style.left=docwidth/2-objwidth/2+"px"
objref.style.top=scroll_top+docheight/2-objheight/2+"px"

if (showonscroll=="yes")
showonscrollvar=setInterval("staticfadebox()", 50)

if (enablefade=="yes" && objref.filters){
objref.filters[0].duration=IEfadelength
objref.filters[0].Apply()
objref.filters[0].Play()
}
objref.style.visibility="visible"
if (objref.style.MozOpacity){
if (enablefade=="yes")
mozfadevar=setInterval("mozfadefx()", 90)
else{
objref.style.MozOpacity=1
controlledhidebox()
}
}
else
controlledhidebox()
}

function mozfadefx(){
if (parseFloat(objref.style.MozOpacity)<1)
objref.style.MozOpacity=parseFloat(objref.style.MozOpacity)+Mozfadedegree
else{
clearInterval(mozfadevar)
controlledhidebox()
}
}

function staticfadebox(){
var ie=document.all && !window.opera
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
objref.style.top=scroll_top+docheight/2-objheight/2+"px"
}

function hidefadebox(){
objref.style.visibility="hidden"
if (typeof showonscrollvar!="undefined")
clearInterval(showonscrollvar)
}

function controlledhidebox(){
if (autohidebox[0]=="yes"){
var delayvar=(enablefade=="yes" && objref.filters)? (autohidebox[1]+objref.filters[0].duration)*1000 : autohidebox[1]*1000
setTimeout("hidefadebox()", delayvar)
}
}

function initfunction(){
setTimeout("displayfadeinbox()", 100)
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}


if (displaymode=="oncepersession" && get_cookie("fadedin")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0){
if (window.addEventListener)
window.addEventListener("load", initfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", initfunction)
else if (document.getElementById)
window.onload=initfunction
document.cookie="fadedin=yes"
}


</script>

<DIV id="fadeinbox" style="filter:progid:DXImageTransform.Microsoft.RandomDissolve(duration=1) progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135); -moz-opacity:0">

[B]Your Text Here[/B]  :blink:
<div align="right"> <a href="#" onClick="hidefadebox();return false">Hide Box</a>
</div>
</DIV>


Notice from snlildude87:
alexia, you did not come up with this code. Therefore, you will be given a warning and a suspension (since this is not your first offense). Here is the evidence: http://www.google.com/search?q=%22%2F%2FSp...ues%20are%3A%22

 

 

 


Reply

beachbabyau
smile.gif Thanks

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. why does sticky session work on firefox but not on ie - 833.82 hr back. (1)
  2. "sticky note" css textarea - 1023.38 hr back. (1)
  3. sticky note script ie6 - 1266.22 hr back. (1)
  4. javascript stickynote tutorial - 1360.75 hr back. (2)
  5. java fadeinbox - 1503.66 hr back. (1)
  6. fadeinbox tutorial - 1567.52 hr back. (1)
  7. sticky note onmouseover - 1601.66 hr back. (1)
  8. sticky note script position - 1782.68 hr back. (1)
  9. php sticky note script - 2133.40 hr back. (1)
Similar Topics

Keywords : script

  1. File Upload Script In Java - File Upload Script in JAVA (5)
    Hi, I am developing my personal website in JSP. I need a file upload script written in JAVA. I got a
    script that is Upload Bean from javazoom.com but the problem is its working fine on Windows
    Operating SYstem but not working on LINUX server. When i pass LINUX path (like
    /home/usr/public_html) to bean it gives me error Check UploadBean properties in your JSP. I
    think this bean aspecting a windows path. Can anyone provide me JSP Smart Upload script or any
    other file upload bean in JAVA. For your information Smart Upload website has been closed. My
    email id is ...
  2. Lottery Script Help - (5)
    I have written a simple lottery script that I want to manually use with my InvisionPlus forum and
    main web site. Currently I have a page with the lottery script on my main page that can be accessed
    from a redirection forum on my forums. The script creates a button on the lottery page of my main
    site that creates a number entry prompt that acts as a password field. If the lotto number is
    correct, then my user is taken to my winners forum where they post they won. The purpose of the
    lotto is for members to win account upgrades. My script though is not working. Here is the ...
  3. Need Help With Javascript Drag And Drop Script - Having trouble with javascript drag and drop script. (2)
  4. Java Script To Hide The Url In Address Bar - Does any one know about this ? (6)
    Hello friends , just now i came accross a particular type of script which is capable of masking the
    URL which is seen in the Address bar of the webpage , that is by implementing the particular Java
    Script when the user visits a page eg. www.mysite.com , then it is possible for the admin of
    www.mysite.com to mask this site and display some other website in the viewers address bar. I came
    to know that such a script can be written using Java Scripts , Can any one get me the Script ??...
  5. Jsp Or Java Chat Script Like Mig33 - (5)
    so most of you guys know mig33. its a wap application,probaly java.most kindly to be java. does
    anyone have java knowlege or knows where i can get a chat script like mig33? i also know this server
    supports jsp so im planing to use it for my application. i was hosted here last year but moved
    because i found a better host. now im back just to use the jsp on this server. Im planing to run
    chat applictions so if any one wants to help me in my project let me know....
  6. [help] Java Script: Window.open - Works with Firefox, not IE (10)
    CODE var popUpWin=0; function popUpWindow(URLStr) {  if(popUpWin)  {  
     if(!popUpWin.closed) popUpWin.close();  }  popUpWin = open(URLStr, 'GunBound Tactics:
    Screenshots',
    'width=820,height=550,menubar=no,resizable=yes,scrollbars=yes,toolbar=no,top=90,left=90'); }
    Clips This is a script for opening a new window. It works with Firefox and not
    Internet Explorer. IE gives a script error and it references a part of the code that has nothing to
    do with the script. Someone please tell me if you can figure out why. Used at this add...
  7. Java Script Drop Down Menu With Css - - a full code for a dynamic drop down (2)
    Introduction This is a code that I use to dynamically create the drop down menus. First, you have
    to edit the following code and put it in your Javascript. Notice : /*** SET BUTTON'S FOLDER HERE
    ***/. Edit that to your folder. Also, the /*** SET BUTTONS' FILENAMES HERE ***/. This creates a
    mouseover when the drop down is activated. Put all your onmouseover images under: oversources = new
    array; and your onmouseout images under : upsources. Be sure to set your on and out images above
    each other. CODE /*** SET BUTTON'S FOLDER HERE ***/ var buttonFold...
  8. Javascript : No Right Click Script !@ - This script will allow you to protect your source coad ! (12)
    This script will help you to protect your source code Add this to Section of your site !
    HTML var message="Function Disabled!"; /////////////////////////////////// function
    clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if
    (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){
    alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmoused...
  9. Problem With Java Script Popup Form - Doesnt work in Safari (1)
    This code wont work in Safari, but works fine in Firefox 2. Can someone help. The error pops up
    however. It just doesn't do anything unless you dont pick one and then it says Pick a Windows
    tweak, but if you DO pick one it doesnt even try to load anything. Everything you see below is
    everything inside my PHP Include. If you would like to view my actual site it's
    http://boozkerstweaks.trap17.com There might be PHP errors and stuff right now, but i am working on
    those, but this i can not get. CODE                      Tweak Archive        Top Tweaks of
    2...
  10. Simple Firefox Vs. Ie Script Bug; Need A Little Help - Simple script works in Firefox but not IE. (3)
    Hello I have a simple .js file that seems to work in Firefox but not IE. The error could totally be
    my syntax, just not sure why it's working in one browser and not the other. All I'm doing
    is waiting for an image to load completely before redirecting. I added an extra step that waits an
    additional 1.5 seconds just for 100% smooth transition (sometimes firefox reroutes before the image
    is actually fully loaded). This script works perfectly for Firefox, meaning if the image is already
    loaded/cached it reroutes immediately and if not, then waits with extra dela...
  11. Great Javascript Script Source - Great Javascript script source (2)
    Are you find great javascript source !!! try this >>> http://www.dynamicdrive.com ...
  12. One Click To Copy Script - In IE6 it works, but not FF2 (4)
    Could everyone have a look at this and suggest how to get this working in FF and/or maybe Opera???
    If you look at this link using IE6 (possibly IE7), you should be able to click on the buttons to
    copy the textarea to the clipboard and then paste it into the blank textarea. Works great in IE, but
    not Firefox or Opera or Netscape Browsers. Link Demo: Here Bring your IE Browser. As per the
    above, it won't work in FF. Javascript for one-click highlight and copy to clipboard
    function doact(d) { var doc = eval("document.readme."+d); cp = doc.c...
  13. Java Script Tutorials - (3)
    This Is Java Script tutorial which is very neccessary for webdesgining so contrate and learn its
    nice and easy QUOTE Since the day Microsoft built support for JavaScript into Internet
    Explorer 3.0, Netscape's client-side language has become the de facto standard for enhancing web
    pages at the browser. In this full-length excerpt from Practical JavaScript Programming, author
    Reaz Hoque explains the basics of client-side scripting. He also gives you some neat scripts that
    can enhance your web pages, making them impressively interactive. Important code snippets ...
  14. Need A Java Script/ Help - How to display download count on site? (6)
    /dry.gif" style="vertical-align:middle" emoid=" I am offering some download stuffs to the
    visitors of my site.. I have seen on some sites that they host download files on a box with 2
    columns, the left one showing the filename and the right column showing the number of times the file
    has been downloaded.. I want to know how to do these.. Is there any javascript available for this..
    if yes then please provide the link for the script....
  15. Browser Quaker! Shock Your Visitors! - this script shakes the browser like a quake happened! (1)
    yeah....try this script to believe it! im sure u will be stunned at the effect! it quakes your
    browser! a good way to show your visitor that...your website ROCKS!..and literally so ! ! i got
    this script from Bravenet 's webmaster freebrees newsletter. if you haven't known bravenet
    before..it is a beginner webmaster's friend! you get lot many features for your website hosted
    freely. and subscribe to their newsletter to get gems like these! ok here's the code: CODE
    function init() { setTimeout("shake(3)",1000); setTimeout("this.focus()",4...
  16. Redirect Script - questionnnnnnnnn (5)
    how do i redirect ppl from my site if they are using a wrong browser? my site only works on ie, so
    if a person useing firefox goes to my site they cant see it its all messed up, so i want to redirect
    them to a page that says to download ie how can i do this???????? Johnnymushio...
  17. Problems With Chat Script - can't encapsulate the chat server... (0)
    hello everyone, I am starting with a project of devloping my own website which could do both
    retreiving data from the database and display it to the registered members along with some
    additional features: namely (chat engine, mailing service and of course discussion forums ) With
    first part of my project nearly completed i am now stuck up with the building of (chat engine,
    mailing service and of course discussion forums ) . I am working with JSP and don't know how to
    really encapsulate the chat server i have build (with rmi ) into JSP.(if any one could guide...)(be...
  18. Bookmark Us - Tutorial + Script (1)
    /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> 1. Copy the coding
    into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML
    document CODE var url = this.location; var who = document.title; var ver =
    navigator.appName var num = parseInt(navigator.appVersion) if ((ver == "Microsoft Internet
    Explorer")&&(num >= 4)) {   document.write('   document.write('onMouseOver="
    window.status=')   document.write("txt; return true ")   document.write('"onMouseOut="
    window.s...
  19. 6 Script - Clock / Password / BookMark / FavIcon / Back and forward but (0)
    1 - Script Back And forward Button CODE function goHist(a) { history.go(a); // Go back
    one. } // 2 - Diable right Mouse button CODE var message="Function
    Disabled!"; /////////////////////////////////// function clickIE4(){ if (event.button==2){
    alert(message); return false; } } function clickNS4(e){ if
    (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){
    alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4; } else if (do...
  20. Java Script Sites - (5)
    this is the best websites for javascript and other javascript.internet.com javascriptkit.com
    webdeveloper.earthweb.com/webjs www.javascript.com www.dynamicdrive.com/
    www.webdeveloper.com/javascript www.javascriptworld.com/scripts www.java-scripts.net
    www.hotscripts.com www.totalscripts.com www.123webmaster.com www.needscripts.com www.reallybig.com
    www.a1javascripts.com javascript.programmershelp.co.uk
    developer.netscape.com/tech/javascript/resources.html
    www.mountaindragon.com/javascript/resources.htm i'll make like this in cgi and php if u love
    it???so....... ...
  21. the java script should move to other place - its not java at all (0)
    Admin: I think the java script should move to other place or give it a single forum , for its not a
    java at all....



Looking for sticky, note, script






*SIMILAR VIDEOS*
Searching Video's for sticky, note, script

*MORE FROM TRAP17.COM*
advertisement



Sticky Note - Script