mporo na to metakiniso ?

Κώδικας, πληροφορίες, ερωτήσεις και απαντήσεις σχετικές με την JavaScript.

Συντονιστές: WebDev Moderators, Super-Moderators

Απάντηση
Άβαταρ μέλους
tolis_montana
Honorary Member
Δημοσιεύσεις: 913
Εγγραφή: 13 Απρ 2004 01:15
Τοποθεσία: στο κοσμο μου...
Επικοινωνία:

mporo na to metakiniso ?

Δημοσίευση από tolis_montana » 13 Ιουν 2004 19:23

perasa ena script sto front page alla de mporo me to mouse na to metakiniso akribos phgeni alla ntalon mipos mporo na to metakiniso aristera dexia pano kato meso toy kwdika html ?>

Κώδικας: Επιλογή όλων

<script>
// CREDITS&#58;
// SuperScroller
// by Urs Dudli and Peter Gehrig 
// Copyright &#40;c&#41; 2001 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http&#58;//www.24fun.com
// info@24fun.com
// 11/1/2001

// IMPORTANT&#58; 
// If you add this script to a script-library or a script-archive 
// you are required to insert a highly visible link to http&#58;//www.24fun.com
// right into the webpage where the script
// will be displayed.

///////////////////////////////////////////////////////////////////////////
// CONFIGURATION STARTS HERE
///////////////////////////////////////////////////////////////////////////

// your messages. Add as many as you like.
var messages = new Array&#40;&#41;
messages&#91;0&#93; = "Transition effects are great!"
messages&#91;1&#93; = "They catch the eyes of your visitors"
messages&#91;2&#93; = "without wasting bandwidth and space."
messages&#91;3&#93; = "This scroller enhances the impact of your pages."
messages&#91;4&#93; = "Just copy and paste the code into your webpage."
messages&#91;5&#93; = "Configuration of messages and font proprieties is very easy."
messages&#91;6&#93; = "Try it and have fun!"
messages&#91;7&#93; = "Now it's time to say goodbye."
messages&#91;8&#93; = "Thank you for visiting www.24fun.com."
messages&#91;9&#93; = "And come back soon."

// the background-colors of your scroller. Add as many as you like.
var backgroundcolor=new Array&#40;"CCCCCC", "yellow", "CCFFFF", "AAEEFF", "CCFF88", "orange"&#41;

// the font-colors of your messages. Add as many as you like.
var fntcolor = new Array&#40;"black","red","226622","0000FF"&#41;

// the font of your messages.
var fntfamily="Arial"

// the font-size &#40;1 to 7&#41;
var fntsize=3

// font-weight&#58; set 1 for bold font, set 0 for normal font
var fntweight=1

// the width of the border &#40;pixels&#41;
var borderwidth=2

// the width of your scroller &#40;pixels&#41;
var scrollerwidth=500
// the height of your scroller &#40;pixels&#41;
var scrollerheight=100
// the horizontal position of your scroller &#40;distance to the left margin of browserwindow&#41;
var scrollerposition_x=10

// the horizontal position of your scroller &#40;distance to the top margin of browserwindow&#41;
var scrollerposition_y=10

// interval &#40;time for each effect plus standstill time, seconds&#41;
var interval=4


///////////////////////////////////////////////////////////////////////////
// CONFIGURATION ENDS HERE
///////////////////////////////////////////////////////////////////////////

var i_messages = 0
var timer
interval=interval*1000
if &#40;fntweight==1&#41; &#123; 
    fntweight="<b>"
&#125;
else &#123;
    fntweight=""
&#125;

function randomposition&#40;range&#41; &#123;		
	return Math.floor&#40;range*Math.random&#40;&#41;&#41;
&#125;

function dotransition&#40;&#41; &#123;
    if &#40;document.all&#41; &#123;
        content.filters&#91;i_messages&#93;.apply&#40;&#41;
        content.innerHTML = "<table width="+scrollerwidth+" height="+scrollerheight+" border="+borderwidth+" cellpadding=3 cellspacing=0><tr><td bgcolor="+backgroundcolor&#91;randomposition&#40;backgroundcolor.length&#41;&#93;+" align=center valign=middle>"+fntweight+"<font face="+fntfamily+" size="+fntsize+" color="+fntcolor&#91;randomposition&#40;fntcolor.length&#41;&#93;+">"+messages&#91;i_messages&#93;+"</font></td></tr></table>"
        content.filters&#91;i_messages&#93;.play&#40;&#41;
        if &#40;i_messages >= messages.length-1&#41; &#123;
            i_messages = 0
        &#125;
        else &#123;
            i_messages++
        &#125;
    &#125; 
	
	    if &#40;document.layers&#41; &#123;
        document.nn.document.write&#40;"<table width="+scrollerwidth+" height="+scrollerheight+" border="+borderwidth+" cellpadding=3 cellspacing=0><tr><td bgcolor="+backgroundcolor&#91;randomposition&#40;backgroundcolor.length&#41;&#93;+" align=center valign=middle>"&#41;
		 document.nn.document.write&#40;fntweight+"<font face="+fntfamily+" size="+fntsize+" color="+fntcolor&#91;randomposition&#40;fntcolor.length&#41;&#93;+">"+messages&#91;i_messages&#93;+"</font></td></tr></table>"&#41;
		document.close&#40;&#41;
        if &#40;i_messages >= messages.length-1&#41; &#123;
            i_messages = 0
        &#125;
        else &#123;
            i_messages++
        &#125;
    &#125; 
    timer = setTimeout&#40;"dotransition&#40;&#41;",interval&#41;   
&#125;

if &#40;document.all&#41; &#123;
    document.write&#40;'<DIV id=content style="position&#58;absolute; top&#58;'+scrollerposition_y+'px; left&#58;'+scrollerposition_x+'px;  text-align&#58;center; filter&#58; revealTrans&#40;Transition=1, Duration=3&#41; revealTrans&#40;Transition=2, Duration=3&#41; revealTrans&#40;Transition=3, Duration=2&#41;  revealTrans&#40;Transition=4, Duration=2&#41;  revealTrans&#40;Transition=5, Duration=1&#41;  revealTrans&#40;Transition=6, Duration=3&#41;  revealTrans&#40;Transition=7, Duration=2&#41;  revealTrans&#40;Transition=8, Duration=1&#41;  revealTrans&#40;Transition=9, Duration=3&#41;  revealTrans&#40;Transition=10, Duration=1&#41;  revealTrans&#40;Transition=11, Duration=2&#41;  revealTrans&#40;Transition=12, Duration=3&#41;  revealTrans&#40;Transition=13, Duration=1&#41;  revealTrans&#40;Transition=14, Duration=2&#41;  revealTrans&#40;Transition=15, Duration=3&#41;  revealTrans&#40;Transition=16 Duration=1&#41;  revealTrans&#40;Transition=17, Duration=2&#41;  revealTrans&#40;Transition=18, Duration=3&#41; revealTrans&#40;Transition=19, Duration=1&#41; revealTrans&#40;Transition=20, Duration=2&#41; revealTrans&#40;Transition=21, Duration=3&#41; revealTrans&#40;Transition=22, Duration=3&#41;"><table width='+scrollerwidth+' height='+scrollerheight+' border='+borderwidth+' cellpadding=3 cellspacing=0><tr><td bgcolor='+backgroundcolor&#91;randomposition&#40;backgroundcolor.length&#41;&#93;+' align=center valign=middle> </td></tr></table></DIV>'&#41;
    window.onload=dotransition
&#125;
if &#40;document.layers&#41; &#123;
    document.write&#40;'<layer id=nn top='+scrollerposition_y+' left='+scrollerposition_x+'> </layer>'&#41;
    document.close&#40;&#41;
    window.onload=dotransition
    &#125;
    </script>

Απάντηση

Επιστροφή στο “JavaScript και Frameworks”

Μέλη σε σύνδεση

Μέλη σε αυτήν τη Δ. Συζήτηση: Δεν υπάρχουν εγγεγραμμένα μέλη και 0 επισκέπτες