Pohybující se menu
.. vtipné meny pro vaše stránky :-):-):-)
Rada ! Nezapomeňte si přidat odkazy :-)):-)):-))
Menu :
www.seznam.cz
www.navrcholu.cz
www.atlas.cz
www.toplist.cz
www.centrum.cz
www.topten.cz
www.zmije.cz
HTML kod :
<SEQUENCE order="Text1, Text2, Text3, Text4, Text5, Text6, Text7" speed="20"
type="auto" increments=10>
<SCRIPT LANGUAGE="JavaScript">
var slideShow = new Object();
function initSequence(s) {
var sTemp = s.sequences[s.currentSequence];
if (null != sTemp) {
// Get list of element IDs to sequence.
s.sequencer = new Array();
s.sequencer = sTemp.getAttribute("order").split(", ");
// Initialize sequence.
for (var intLoop=0; intLoop < s.sequencer.length;
intLoop++)
if (null != document.all[s.sequencer[intLoop]]) {
var el = document.all[s.sequencer[intLoop]];
el.initTop = el.style.posTop;
el.initLeft = el.style.posLeft;
}
s.speed = (null == sTemp.getAttribute("speed")) ?
20 : sTemp.getAttribute("speed");
s.type = ("auto" == sTemp.getAttribute("type"));
s.increments =
(null == sTemp.getAttribute("increments")) ?
15 : sTemp.getAttribute("increments");
s.inc = 0;
s.position = -1;
}
else {
s.position = null;
if (document.onclick == doFly)
document.onclick = new Function();
}
}
function nextSequence(s) {
// If sequence is available, run it.
if (null != s.position) {
// s.position represents an element in a sequence.
// Run until no more elements are found; then look for
// next sequence.
s.position++
if (s.position < s.sequencer.length) {
s.inc = 0;
if (s.type) // Runs on a timer
window.setTimeout("doFly();", s.speed)
else // Runs on the click event
document.onclick = doFly;
}
else {
s.currentSequence++;
initSequence(s);
nextSequence(s);
}
}
else {
s.position = null;
if (document.onclick == doFly)
document.onclick = null;
}
}
function slide() {
// Initialize sequencer -- get all <SEQUENCE> tags.
slideShow.sequences = document.all.tags("SEQUENCE");
slideShow.sequencer = new Array();
if (0 < slideShow.sequences.length) {
slideShow.currentSequence = 0;
initSequence(slideShow); // Initialize.
nextSequence(slideShow); // Start first sequence.
}
}
function doFly() {
var dt, dl;
var el =
document.all[slideShow.sequencer[slideShow.position]];
document.onclick = null; // Stop click events
// until complete.
// Reposition the element.
slideShow.inc++;
dt = el.initTop / slideShow.increments;
dl = el.initLeft / slideShow.increments;
el.style.posTop = el.style.posTop - dt;
el.style.posLeft = el.style.posLeft - dl;
if (slideShow.inc < slideShow.increments)
window.setTimeout("doFly();", slideShow.speed)
else {
el.style.top = 0;
el.style.left = 0;
nextSequence(slideShow);
}
}
</SCRIPT>
<STYLE TYPE="text/css">
BODY {color:white; BACKGROUND: URL(img001.gif) black}
DIV {position:relative; width:100%; font-size:13pt;
height:40px}
H1 {text-align:center; font-size:18pt}
</STYLE>
</HEAD>
<BODY ONLOAD="slide();">
<DIV ID="Text1" STYLE="top:0px; left:-350px; color:red">
www.seznam.cz</DIV>
<DIV ID="Text2" STYLE="top:0px; left:-350px; color:blue">
www.navrcholu.cz</DIV>
<DIV ID="Text3" STYLE="top:0px; left:-350px; color:yellow">
www.atlas.cz</DIV>
<DIV ID="Text4" STYLE="top:0px; left:-350px; color:red">
www.toplist.cz</DIV>
<DIV ID="Text5" STYLE="top:0px; left:-350px; color:blue">
www.centrum.cz</DIV>
<DIV ID="Text6" STYLE="top:0px; left:-350px; color:yellow">
www.topten.cz</DIV>
<DIV ID="Text7" STYLE="top:0px; left:-350px">
www.zmije.cz</DIV>
</BODY>
žlutě ... rychlost nájezdu
Pokračujte kliknutím na tlačítko ENTER !
© 2000 ERROR