Nu sunteti conectat. Conectati-va sau inregistrati-va

Vezi subiectul anterior Vezi subiectul urmator In jos  Mesaj [Pagina 1 din 1]

¤Sonny¤

Moderator
avatar
Moderator

Mesaje Mesaje : 134
Credite Credite : 158
Data de inscriere Data de inscriere : 27/08/2011
Vezi profilul utilizatorului http://helpcenter-fg.forumz.ro

Meniu HTML la data de Sam Mai 12, 2012 8:24 pm





Meniu pagina HTML.



Codul poate fi pus intr-o pagina HTML, dar si in generalitati:

Cod:

<style>
<!--
#slidemenubar, #slidemenubar2{
position:absolute;
border:3.5px solid black;
background-color:#24A7FF;
layer-background-color:#24A7FF;
font:bold 15px Verdana;
line-height:20px;
}
-->
</style>
<script language="Javascript1.2">



var slidemenu_width='180px' //specify width of menu (in pixels)
var slidemenu_reveal='18px' //specify amount that menu should protrude initially
var slidemenu_top='250px'  //specify vertical offset of menu on page

var ns4=document.layers?1:0
var ie4=document.all
var ns6=document.getElementById&&!document.all?1:0

if (ie4||ns6)
document.write('<div id="slidemenubar2" style="left:'+((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1)+'px; top:'+slidemenu_top+'; width:'+slidemenu_width+'" onMouseover="pull()" onMouseout="draw()">')
else if (ns4){
document.write('<style>n#slidemenubar{nwidth:'+slidemenu_width+';}n</style>n')
document.write('<layer id="slidemenubar" left=0 top='+slidemenu_top+' width='+slidemenu_width+' onMouseover="pull()" onMouseout="draw()" visibility=hide>')
}

var sitems=new Array()

///////////Edit below/////////////////////////////////

//siteitems[x]=["Item Text", "Optional URL associated with text"]

sitems[0]=["<big><center><font face='Arial'>Meniu</font></big>", ""]
sitems[1]=["continut text", "link/"]
sitems[2]=[" continut text", "link/"]
sitems[3]=["continut text", "link/"]
sitems[4]=["continut text", "link/"]
sitems[5]=["continut text", "link/"]
sitems[6]=["continut text", "link/"]
sitems[7]=["continut text", "link/"]
sitems[8]=["continut text", "link/"]
sitems[9]=["continut text", "link/"]
sitems[10]=["continut text", "link/"]

//If you want the links to load in another frame/window, specify name of target (ie: target="_new")
var target=""

/////////////////////////////////////////////////////////

if (ie4||ns4||ns6){
for (i=0;i<sitems.length;i++){
if (sitems[i][1])
document.write('<a href="'+sitems[i][1]+'" target="'+target+'">')
document.write(sitems[i][0])
if (sitems[i][1])
document.write('</a>')
document.write('<br>n')
}
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (ns4){
document.slidemenubar.left=((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1)
document.slidemenubar.visibility="show"
setTimeout("window.onresize=regenerate",400)
}
}
window.onload=regenerate2

rightboundary=0
leftboundary=(parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1

if (ie4||ns6){
document.write('</div>')
themenu=(ns6)? document.getElementById("slidemenubar2").style : document.all.slidemenubar2.style
}
else if (ns4){
document.write('</layer>')
themenu=document.layers.slidemenubar
}

function pull(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengine()",10)
}
function draw(){
clearInterval(pullit)
drawit=setInterval("drawengine()",10)
}
function pullengine(){
if ((ie4||ns6)&&parseInt(themenu.left)<rightboundary)
themenu.left=parseInt(themenu.left)+10+"px"
else if(ns4&&themenu.left<rightboundary)
themenu.left+=10
else if (window.pullit){
themenu.left=0
clearInterval(pullit)
}
}

function drawengine(){
if ((ie4||ns6)&&parseInt(themenu.left)>leftboundary)
themenu.left=parseInt(themenu.left)-10+"px"
else if(ns4&&themenu.left>leftboundary)
themenu.left-=10
else if (window.drawit){
themenu.left=leftboundary
clearInterval(drawit)
}
}
</script>

Cateva imagini:
Spoiler:

[Trebuie sa fiti inscris si conectat pentru a vedea acest link]
[Trebuie sa fiti inscris si conectat pentru a vedea acest link]

Culoarea meniului se poate schimba inlocuind:
#24A7FF cu o alta nuanta:

Cod:

<style>
<!--
#slidemenubar, #slidemenubar2{
position:absolute;
border:3.5px solid black;
background-color:#24A7FF;
layer-background-color:#24A7FF;
font:bold 15px Verdana;
line-height:20px;
}

Previzualizare: [Trebuie sa fiti inscris si conectat pentru a vedea acest link]
















________________________________________________________________________________________________
Mesaj scris de Sonny

Numai bine,
Echipa HelpCenter-FG


Vezi subiectul anterior Vezi subiectul urmator Sus  Mesaj [Pagina 1 din 1]

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum