Check hacked javascript for errors -
It looks good so far, I'm going to get the code and take a closer look at it.
Hopefully, I'll have some feedback for you sometime tonight
------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com
Anonymous posted this at 02:07 — 27th April 1999.
They have: 5,633 posts
Joined: Jan 1970
Hi guys,
I am working on a javascript that will allow you to specify a start point and an end point for moving layers. I have a script that works but am having some problems with it. Could you beautiful geniuses check it out and tell me why
1. You cannot but the same vertical(or horizonatal) start and stop points in. They have to be off by one.
2. If I put a link on the page I cannot click it to go somewhere else. Also if I right click to view the source I get no menu.(If I knew how to make that work I would have two great scripts)
Also on a somewhat related note. I would like the layer with the background gif in it to load after the animation has completed.
Thanks for your help. When I get this working I would like to submit it to javascript city.
------------------
Sorry forgot to give the url
www.discoverynet.com/~tekguy/New2/Home.html
My goal in life is found in Phillipians 4:8-9
[This message has been edited by Jim (edited April 26, 1999).]
John Pollock posted this at 00:45 — 28th April 1999.
He has: 628 posts
Joined: Mar 1999
On the question about the start and end points being equal, I think it is because the script will bypass the commands inside the function if they are equal. The functions have a check like this:
if (startv < finishv)
You might try to set this to <= so that it includes the numbers if they are equal, ie:
if (startv <= finishv)
Try that for each of the checks and see if it will accept it without any problems.
As for the link, where were you placing the link on the page? I couldn't see a reason for it not to work, but I could be missing something
------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com
Java Script: A Beginner's Guide
Page Resource
JP Stones posted this at 19:49 — 30th April 1999.
They have: 2,390 posts
Joined: Nov 1998
Oooh I like that!
I am thinking of using flash for the new Webmaster Forums site, but might use something like this instead.
Can you go briefly though the process please.
(if you have time)
JP
------------------
The Webmaster Promotion and Resource Site
www.what-next.com
The NEXT step in Designing and Promoting your Website
Anonymous posted this at 20:40 — 30th April 1999.
They have: 5,633 posts
Joined: Jan 1970
Hey JP,
The script has 6 variables, Vert and Hor start points, Vert and Hor end points Step increment and speed. The script checks for difference and then adds according to the step increment. The only problem that I have seen with it is that on a straight vertical or horizontal you have to have one pixel difference. If John will have it for Javascript City I will put comments in the file that will make it real easy to understand.
------------------
My goal in life is found in Phillipians 4:8-9
Anonymous posted this at 00:02 — 1st May 1999.
They have: 5,633 posts
Joined: Jan 1970
I have reposted the page with a link. On my browser the link does not work until after the animation has stopped. If this is going to be the case, can you tell me a way to hide the layer that the link is on until after the animation is done? If not we will just have to live with it.
John, do you think my variation of the script is good enough to put on your site? I think it is different enough from the script that I hacked to consider it my own.
Thanks Jim
------------------
My goal in life is found in Phillipians 4:8-9
John Pollock posted this at 00:56 — 2nd May 1999.
He has: 628 posts
Joined: Mar 1999
Sorry to get back so late on this one.
Jim:
I'll almost surely accept the script for JS City. Could you post the url of the original script as well, I'll need to be sure this version isn't too close to the original or that the original isn't tightly copyrighted- that way I don't get into any tangles for posting it.
I have been needing to add a new section for DHTML scripts anyway, so this will probably be the first one- and with your credits
------------------
John Pollock
www.pageresource.com
www.javascriptcity.com
[This message has been edited by John Pollock (edited May 01, 1999).]
Java Script: A Beginner's Guide
Page Resource
Anonymous posted this at 20:32 — 10th May 1999.
They have: 5,633 posts
Joined: Jan 1970
Hello all,
Hate to bring this topic back to life but I just tested this script on a MAC and it doesn't work. Anyone else have problems on a MAC with Netscape 4.5 or IE 4.5? Netscape is real jerky and IE wont let the link work.
Thanks for your help.
------------------
My goal in life is found in Phillipians 4:8-9
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.