Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Floating a div by javascript
Old 01-06-2007, 05:53 PM Floating a div by javascript
Skilled Talker

Posts: 81
Trades: 0
Hi folks

This script floats a div
http://ied.gospelcom.net/scripts/floatingdiv.js

with x and y coordinate settings at the very top.

Is there any way of neutralising or removing the x coordinate value such that the CSS absolute position for the div will take over, and position the div as right:0.

Best wishes and thanks


Tony
soon is offline
Reply With Quote
View Public Profile Visit soon's homepage!
 
 
Register now for full access!
Old 01-06-2007, 06:45 PM Re: Floating a div by javascript
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I'm not sure exactly what you're asking, but if I'm understandinf right then instead of giving a value to the x-coordinate when it's declared don't assign a value to it.

Instead of:

var target_x = 370;

use:

var target_x;

Is that what you're looking for?
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-06-2007, 08:15 PM Re: Floating a div by javascript
Skilled Talker

Posts: 81
Trades: 0
Excellent, thanks, that is just what was need!

Best wishes

tony
soon is offline
Reply With Quote
View Public Profile Visit soon's homepage!
 
Old 01-06-2007, 11:39 PM Re: Floating a div by javascript
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Glad to help.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Floating a div by javascript
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13128 seconds with 12 queries