Click to See Complete Forum and Search --> : REQ:Amaxon style layer effects information


steedvlx
05-23-2004, 01:23 AM
Hi to all on the forum,

I'm not a javascript programmer. But, a javascript 'user'. I love integrating scripts that are offered free or commercially. It helps me to gain a bit of understanding as to how it all works.

With that in mind, the amaxon.com script functions xs_p and xs_tuck have not escaped my parrot-like affinity for new and shiny scripts. :)

I have two questions. First, is this script available for general use? And, if so, is it commercially available or even freely available anywhere? Either way, I want to use it. If it is proprietory to Amaxon, then I understand that it cannot legally be used. :(

The simple use of the script presents a problem in its present form, since I cannot understand what all the parameters do and exactly how to structure the calls. If anyone would point me to a place to legally aquire the script and/or get instructions on how to set the parameters and calls, I would be thankful.

Thanks in Advance,
SteedVLX

fredmv
05-23-2004, 05:10 AM
Welcome to the forums.

Do you have a link to the page in question in which implements these said functions?

steedvlx
05-23-2004, 05:58 AM
Sorry, I was being cryptic for no reason. It's the Amazon.com site. I thought it might be familiar since a search for the xs_pd and xs_tuck functions in that script directed me to this forum.

amazon.com (http://www.amazon.com)

Thanks,
SteedVLX

fredmv
05-23-2004, 06:01 AM
I was thinking more an exact page on Amazon in which implements it. Skimming the source code on their front page, I didn't see the functions in there. Nor did I see any external script references in which would presumably contain those functions.

steedvlx
05-23-2004, 06:26 AM
It is actually on the front page. It is the script that causes the little 200x200 ad to roll down from the menu bar, then roll up again and slide to the right out of the way. Really neat that.

hopefully this isn't against the rules. So, here is the first few lines of the script.

<script language="javascript">
var baseline;
var xs_bv=0;
var xs_pHeight=211;
var xs_updown=1;
var xs_endpt=0;
var xs_ranonce=0;
var xs_pDivSeen=0;
var xs_pTuck=0;
var ua=navigator.userAgent.toLowerCase()
......

Thanks, and sorry for the confusion.

SteedVLX

fredmv
05-23-2004, 07:06 AM
Very interesting. It appears Amazon has some server-side code that gets the browser you're using and sends different code based upon it. In Mozilla, that code is indeed not there. However, I did check under IE and it is. I guess I can conclude you're running IE (I'm sorry). However, I've got just the thing for you: http://www.dynamicdrive.com/dynamicindex17/amazondrop.htm. Enjoy.

P.S. Some users may find this annoying, so use with caution.

steedvlx
05-23-2004, 12:21 PM
THANK YOU!

That's definately what I wanted to play with. You've also introduced me to a new website. I will definately have fun with this. I'll try not to overly annoy any visitors I may getwith it. :)

SteedVLX