كمك براي يك منوي mouseover

Milad-A

Member
من مي‌خواهم يك منوي mouseover درست كنم كه در هر مانيتوري و با هر تنظيم رزولوشني منوي باز شده جاي‌اش تغيير نكند لطفاْ كمك‌ام كنيد
 

saman_sweden

Active Member
Re: كمك براي يك منوي rolover

Milad-A گفت:
من مي‌خواهم يك منوي rolover درست كنم كه در هر مانيتوري و با هر تنظيم رزولوشني منوي باز شده جاي‌اش تغيير نكند لطفاْ كمك‌ام كنيد

توضيح بيشتر ميخوام
 

Milad-A

Member
آقا سامان گل! مشكل من اين‌اه كه مثلاض وقتي از اين منوها كه با رفتن موس باز مي‌شن كار مي‌كنم به فرض در رزولوشن 800*600 درست زير نام اصلي منو باز مي‌شود اما در رزولوشن ديگر جاي‌اش تغيير مي‌كند. اصلاْ بگذار سوآل را يك جور ديگر بپرسم. من اسكريپتي مي‌خواهم براي ايجاد يك منوي mouse overاگر ممكن است كد آن را براي‌ام بنويسيد و صد البته به‌تر كه بدانم چي به چي است؟ مرسي
 

saman_sweden

Active Member
Milad-A گفت:
آقا سامان گل! مشكل من اين‌اه كه مثلاض وقتي از اين منوها كه با رفتن موس باز مي‌شن كار مي‌كنم به فرض در رزولوشن 800*600 درست زير نام اصلي منو باز مي‌شود اما در رزولوشن ديگر جاي‌اش تغيير مي‌كند. اصلاْ بگذار سوآل را يك جور ديگر بپرسم. من اسكريپتي مي‌خواهم براي ايجاد يك منوي mouse overاگر ممكن است كد آن را براي‌ام بنويسيد و صد البته به‌تر كه بدانم چي به چي است؟ مرسي
اين كارتون راه مينداره يا من از مرحله پرتم احتياح به رزولوشن هم نداره

برنامه با mouse over است
اسم اين فايل menu.html

کد:
<HTML><HEAD><TITLE>Menu</TITLE>
<META 
content="JavaScript Made Easy:  Free JavaScripts, Tutorials, Example Code, Reference, Resources, And Help" 
name=title>
<META 
content="Large Collection of JavaScript source code. Choose from thousands of free scripts. JavaScript tutorials with example code. Excellent reference material for JavaScript. If you need help with JavaScript. JavaScript Made Easy is the place to find it." 
name=description>
<META 
content="javascript, jsmadeeasy, script, source code, code, source, online, internet, programing, DHMTL, Navigation, html, developer, develop, css, dhtml, netscape, [url]www.javascript.com[/url], javascript.com, Tutorials, Reference, Windows, Cookies" 
name=keywords>
<META 
content="javascript, jsmadeeasy, script, source code, code, source, online, internet, programing, DHMTL, Navigation, html, developer, develop, css, dhtml, netscape, [url]www.javascript.com[/url], javascript.com, Tutorials, Reference, Windows, Cookies" 
name=keyphrase>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<META [email protected] name=author>
<META content=index,follow name=robots>
<META content=General name=rating>
<META content="JSMadeEasy - CSIWorks" name=author>
<META content="30 days" name=revisit>
<META content="30 days" name=revisit-after>
<META content=global name=distribution>
<META content="(C) Copyright 1999-2000 ~ jsmadeeasy.com" name=copyright>
<META content=english name=language>
<META content="JavaScript Made Easy" name=theives>
<META http-equiv=expires content=0>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META http-equiv=pics-label 
content='(pics-1.1 "http://www.icra.org/ratingsv02.html" l gen true for "http://www.jsmadeeasy.com" r (cb 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.jsmadeeasy.com" r (n 0 s 0 v 0 l 0))'>
<META content="Microsoft FrontPage 3.0" name=GENERATOR>
<STYLE>BODY {
	BACKGROUND-COLOR: lightyellow
}
A:hover {
	COLOR: red
}
</STYLE>
</HEAD>
<BODY 
onmouseover="if (document.all&&window.parent.pull) window.parent.pull()" 
onmouseout="if (document.all&&window.parent.pull) window.parent.draw()" 
leftMargin=5 topMargin=5 marginheight="5" marginwidth="5">
<P><A href="http://dynamicdrive.com/" target=_parent><STRONG><FONT 
face=Verdana>Dynamicdrive</FONT></STRONG></A></P>
<P><IMG height=16 alt="fold.gif (119 bytes)" src="menu-filer/fold.gif" width=16> 
<STRONG><FONT face=Verdana><SMALL><A href="http://dynamicdrive.com/" 
target=_parent>Home</A><BR><IMG height=16 alt="fold.gif (119 bytes)" 
src="menu-filer/fold.gif" width=16> <A href="http://dynamicdrive.com/new.htm" 
target=_parent>What's New?</A><BR><IMG height=16 alt="fold.gif (119 bytes)" 
src="menu-filer/fold.gif" width=16> <A href="http://dynamicdrive.com/forum.htm" 
target=_parent>Forum</A><BR><IMG height=16 alt="fold.gif (119 bytes)" 
src="menu-filer/fold.gif" width=16> <A href="http://dynamicdrive.com/faqs.htm" 
target=_parent>FAQs</A></SMALL><BR><SMALL><IMG height=16 
alt="fold.gif (119 bytes)" src="menu-filer/fold.gif" width=16> <A 
href="http://dynamicdrive.com/submitscript.htm" target=_parent>Submit 
script</A></SMALL></FONT></STRONG></P>
<P><FONT face=Verdana><STRONG><SMALL>saman</SMALL></STRONG></FONT></P>
</BODY></HTML>
اينم خود برنامه

کد:
<HTML><HEAD><TITLE>Untitled Document</TITLE>
<META 
content="JavaScript Made Easy:  Free JavaScripts, Tutorials, Example Code, Reference, Resources, And Help" 
name=title>
<META 
content="Large Collection of JavaScript source code. Choose from thousands of free scripts. JavaScript tutorials with example code. Excellent reference material for JavaScript. If you need help with JavaScript. JavaScript Made Easy is the place to find it." 
name=description>
<META 
content="javascript, jsmadeeasy, script, source code, code, source, online, internet, programing, DHMTL, Navigation, html, developer, develop, css, dhtml, netscape, [url]www.javascript.com[/url], javascript.com, Tutorials, Reference, Windows, Cookies" 
name=keywords>
<META 
content="javascript, jsmadeeasy, script, source code, code, source, online, internet, programing, DHMTL, Navigation, html, developer, develop, css, dhtml, netscape, [url]www.javascript.com[/url], javascript.com, Tutorials, Reference, Windows, Cookies" 
name=keyphrase>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<META [email protected] name=author>
<META content=index,follow name=robots>
<META content=General name=rating>
<META content="JSMadeEasy - CSIWorks" name=author>
<META content="30 days" name=revisit>
<META content="30 days" name=revisit-after>
<META content=global name=distribution>
<META content="(C) Copyright 1999-2000 ~ jsmadeeasy.com" name=copyright>
<META content=english name=language>
<META content="JavaScript Made Easy" name=theives>
<META http-equiv=expires content=0>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META http-equiv=pics-label 
content='(pics-1.1 "http://www.icra.org/ratingsv02.html" l gen true for "http://www.jsmadeeasy.com" r (cb 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.jsmadeeasy.com" r (n 0 s 0 v 0 l 0))'>
<STYLE>#slidemenubar {
	BORDER-RIGHT: green 1px solid; BORDER-TOP: green 1px solid; LEFT: -155px; BORDER-LEFT: green 1px solid; WIDTH: 160px; LINE-HEIGHT: 25px; BORDER-BOTTOM: green 1px solid; FONT-FAMILY: Verdana; POSITION: absolute; TOP: 10px; BACKGROUND-COLOR: lightyellow; layer-background-color: lightyellow
}
#slidemenubar2 {
	BORDER-RIGHT: green 1px solid; BORDER-TOP: green 1px solid; LEFT: -155px; BORDER-LEFT: green 1px solid; WIDTH: 160px; LINE-HEIGHT: 25px; BORDER-BOTTOM: green 1px solid; FONT-FAMILY: Verdana; POSITION: absolute; TOP: 10px; BACKGROUND-COLOR: lightyellow; layer-background-color: lightyellow
}
</STYLE>
</HEAD>
<BODY bgColor=#ffffff><B><FONT face="Arial, Helvetica, sans-serif" 
size=2><IFRAME id=slidemenubar2 
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; LEFT: -150px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" 
src="Untitled Document-filer/menu.htm" width=230 
height=315></IFRAME></FONT></B>
<LAYER id=slidemenubar onmouseover=pull() 
onmouseout=draw() 
src="/javascripts/Navigation/Slide-In%20Menu%20Bar%20IV%20External%20menu%20file/menu.htm"></LAYER>
<DIV align=right><FONT face="Arial, Helvetica, sans-serif" size=2><B>
<SCRIPT language=JavaScript>
<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

//-->
</SCRIPT>

<SCRIPT language=JavaScript1.2>

/*
Sliding Menu Bar Script IV- 
© Dynamic Drive ([url]www.dynamicdrive.com)[/url]
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",400)
}
window.onload=regenerate2
if (document.all){
themenu=document.all.slidemenubar2.style
rightboundary=0
leftboundary=-150
}
else{
themenu=document.layers.slidemenubar
rightboundary=150
leftboundary=10
}
function pull(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengine()",50)
}
function draw(){
clearInterval(pullit)
drawit=setInterval("drawengine()",50)
}
function pullengine(){
if (document.all&&themenu.pixelLeft<rightboundary)
themenu.pixelLeft+=5
else if(document.layers&&themenu.left<rightboundary)
themenu.left+=5
else if (window.pullit)
clearInterval(pullit)
}
function drawengine(){
if (document.all&&themenu.pixelLeft>leftboundary)
themenu.pixelLeft-=5
else if(document.layers&&themenu.left>leftboundary)
themenu.left-=5
else if (window.drawit)
clearInterval(drawit)
}
</SCRIPT>
  </B></FONT></DIV>
</BODY></HTML>
 

Milad-A

Member
سامان عزيز! بي‌نهايت سپاس اما اگر ممكن است يك توضيح كلي(يه جور تجزيه‌ي ساده)برام بده. خدا خيرت بده. ته دل‌ات هم نگو عجب عقب‌افتاده‌يي‌اه اين. چاكرتيم.
 

جدیدترین ارسال ها

بالا