There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
blue screen boot computer connection crash css dell display driver drivers email error ethernet excel firefox firefox 3 game hard drive hardware internet internet explorer itunes laptop lcd malware monitor network networking outlook outlook 2003 outlook express partition password printer problem problems router security slow software sound sprtcmd.exe trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: confusing issue


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Duckman69's Avatar
Computer Specs
Senior Member with 644 posts.
 
Join Date: Jun 2007
21-Aug-2007, 05:29 AM #1
Solved: confusing issue
i've got a swf object thats gonna be my flash menu for visitors, now i jacked a public script and worked out some bugs to get it to move my flash menu as the user moves the page up and down... you can see what i mean at http://www.freewebs.com/fallingrain11/outcome.html

im wondering if any1 can help me along ive been playing with the script i got working for awhile, with no luck im trying to set a boundry for the script because as you will see if you click that link it starts on my top border so its blocking stuff i would rather have showing... im gonna google a few things i have in mind that might help but as for playing with the script anymore im stumped, any help would be really cool, thanks
Duckman69's Avatar
Computer Specs
Senior Member with 644 posts.
 
Join Date: Jun 2007
21-Aug-2007, 08:00 AM #2
i did alter innerY as much as i could btw and when i push it to 150 where hte top border ends i loose a bit of my menu i think i might have to write an if statement and make a new variable but know theres another way to do this just altering the code so im gonna try to find that 4 hours into this project ill figure it out in due time tho...

If any1 can glance over the code and maby give an idea i would really appreciate it cuz im slow and ill be on this for literally like another 12+ edit hours... heres the code im using below...



<html><head><title>Sticky Menu Bar</title>
<script language=javaScript>
function setVariables(){
y1=-50;ob=1;max=20 // this max sets the distance from the top of the page

if (navigator.appName == "Netscape") {
v=".top=";h=".left=";dS="document.";sD="";
y="window.pageYOffset";x="window.pageXOffset";iW="window.innerWidth";iH="wi ndow.innerHeight"
}
else {h=".pixelLeft=";v=".pixelTop=";dS="";sD=".style";
y="document.body.scrollTop";x="document.body.scrollLeft";iW="document.body. clientWidth";iH="document.body.clientHeight"
}
object="object1";
checkLocationA()
}
movex=0,movey=0,xdiff=0,ydiff=0,ystart=0,xstart=0

function checkLocation(){
// innerX=eval(iW)-115 // place to the right
innerX=21 // controls the horizontal from the left side of the page
// innerY=eval(iH)-35 // place at the bottom
innerY=120 // controls the verticle from the top of the page
if (document.layers){innerY-=10;innerX-=10}
yy=eval(y);
xx=eval(x);
ydiff=ystart-yy;
xdiff=xstart-xx;
if ((ydiff<(-0.01))||(ydiff>(0.01))) movey=Math.round(ydiff/10),ystart-=movey
if ((xdiff<(-0.01))||(xdiff>(0.01))) movex=Math.round(xdiff/10),xstart-=movex

N=(document.layers)?1:0
V=(N) ? 4:5
if (V==4){
object="object1"
eval(dS+object+sD+v+(ystart+innerY+10));
eval(dS+object+sD+h+(xstart+innerX+10));

//eval(dS + objectX + sD + v + y);
}
else{
object=document.getElementById('object1')
object.style.top=ystart+innerY
object.style.left=xstart+innerX
}

setTimeout("checkLocation()",10)}
function checkLocationA(){
ystart=eval(y)+1;
xstart=eval(x)+5;}
spread=1
function scrollOn(){
items=1
if (ob<=items){
objectX="object"+ob;
y1+=10;

N=(document.layers)?1:0
V=(N) ? 4:5
if (V==4){
eval(dS + objectX + sD + v + y1);}
else{
object=document.getElementById(objectX)
object.style.top=y1}
//eval(dS + objectX + sD + v + y);

if (y1<max) xx=setTimeout ("scrollOn()",20)
else y1=-50, max+=spread, ob+=1, xx=setTimeout("scrollOn()",20) // this max sets the spacing
}
if (ob>1){clearTimeout(xx);checkLocation();}
}
</script>
</HEAD>


<body onload="setVariables();scrollOn()" bgcolor="#eeeeee">



<table border="2" bordercolor="lawngreen" cellpadding="12" cellspacing="2" Width="100%">

<tr><td align="center" colspan="2">
<tr><td bordercolor="#7FFC00"; align="left" Width="17%" valign="top">



test<br>test
<CENTER>New and improved <B>Scroll On Sticky Menu</B><br><br>
The logo uses relative positioning<br><br>and it works with <B>Netscape Version 6</B>
</CENTER>
</tr></td>





<div id="object1" style="position:absolute; visibility:show; left:25px; top:-50px; z-index:2">
<a href="javascript:void" >

<object cellpadding="100";
classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"
width="143"
height="395">
<param name="BGCOLOR" value="#0">
<param name=movie value="irawr-flash-menu-vertical.swf">
<param name=quality value=high>

<embed src="irawr-flash-menu-vertical.swf"
quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash"
width="143"
height="395"
bgcolor="#0">
</embed>
</object>

</a></div>
Duckman69's Avatar
Computer Specs
Senior Member with 644 posts.
 
Join Date: Jun 2007
21-Aug-2007, 08:43 AM #3
forget the whole thing sorry i even posted this its kinda stupid and i give up im just gonna edit my top images arround this to leave a gap there for the menu or just have the menu over it sorry about this thread...
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:00 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.