Forum Moderators: open

Message Too Old, No Replies

dropboxleft but no dropboxright?

         

internetheaven

11:47 am on May 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I want to use javascript to make a box slide down on the right hand side of the page. If I use:

var dropboxleft=600 then people with smaller or larger resolutions will see the form in completely different places, yes?

How do you get the drop in box to drop in from the absolute right of the page?

Thanks
Mike

tedster

1:07 pm on May 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In CSS you definitely can use position:absolute and specify an element's position with "left", "top", "right", and "bottom" properties.

But you are not looking directly at the css or javascript here -- dropboxleft is a variable name that someone else created. It's part of code they wrote that USES css and javascript. To have a dropboxright, someone's going to need to write the code to define it.

internetheaven

4:41 pm on May 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Okay, thanks. So is there a better script than dropinbox?

tedster

7:24 pm on May 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know of a copy/paste solution - but it sounds like you can adapt the script you have by switching the left property to a right property.