position

drag and drop ordering of images

Hi, I have 5 images that go into a banner on my homepage. These images are stored in the database but what I would like the user to do is drag and drop them so they retain some order. What I need to do is a (i) drag and drop the images in a container div so left if position 1 and right is position 5. (ii) on sumbit save the position...

JQUERY: Simple get Offsets of a div.

Hi to all, i would like get the offsets of a div,but when i try to access to that div says me [Object object]... or undefined or 0.0;because i think that my method is wrong :-( This is the code of the page: http://pastebin.org/208836 And i have already tried with this code: var p = $(".product_72ivnj"); var offset = p.offset(); var ...

Is it possible to change image position and width with php GD?

I have a gif file with many icons and buttons on it.. What I want to do is include that gif file using php gd somefunction("file.gif") then, resize the new image to 30px by 30px.. and then be able to position (using x and y coordinates) the actual gif file, so that only a certain area of the image shows on the new file.. just like the ...

CSS positioning issue with IE

Hi. I'm having a very strange CSS issue with my slider and IE. As you can see, the pagination is being displayed above the slider. However, in all other browsers it is being displayed at the bottom of the slider correctly. I cannot figure out why this is, and I have tried everything, hence why I am here. See for yourself: http://matthew...

HTML top and left pixal proportional growth of position

I want my page to be centered in the users screen,say with width of 800px. How do I ensure that the div tags left and top attributes adjust correctly based on the users screen resolution? ...

[XSLT] Position() and Issues with the value I am retrieving

<tableLayout> <tableColumn width="250"/> <tableDivider spaceAfter="0" spaceBefore="0"/> <tableColumn/> <tableDivider spaceAfter="0" spaceBefore="0"/> <tableColumn/> </tableLayout> When selecting the width for the current "column" using the above data (not my decision to structure it like this...

[WPF] ItemsControl : how to do hittest to find item / index under mouse position ?

In my Canvas I have children with a specific design which includes an ItemsControl. In the OnPreviewLeftMouseButtonDown handler of my canvas, I perform a hittest using VisualTreeHelper, and when I find a specific ItemsControl I'd like to know which item / item-index the mouse was over. Does anybody know how to do this ? ...

How to get mouse position related to desktop in WPF?

Problem When you search for such question using google you get a lot of hits but all solutions assume you have at least one window. But my question is just like I phrased it -- not assumptions at all. I can have a window, but I could have zero windows (because I didn't even show one or I just closed the last one). So in short the solut...

Most Efficient Way to Find Leftmost div?

Using jQuery or straight Javascript, I'm looking for the best way to find the leftmost div (or in general the DOM element with the minimum or maximum position on either axis). So far I have two solutions: Iterate through the div objects that I want to consider, saving the smallest left position found. Build an array of objects and us...

Getting the correct mouse position in SFML with OpenGL

My problem is related to getting the correct mouse co-ordinates from SFML while using OpenGL. Basically I am making a polygon rotate on the Z axis to look at the current cursor position. You can also move the polygon around the screen with the WASD keys. If the polygon stays in the center of the screen everything works great, but my p...

Google Maps Api v3 - set map position in runtime

hello, how can i change position of the map, from where it is pointing now, to ie. 45.00,19.00, but in a runtime, now when map is initialsed? my application have to "jump" from some coordinates to other, so that's why i need this ability. tnx in adv! ...

Get element position() regardless of parent

Lets say you have an xml document like <parents> <parent> <element /> <element /> </parent> <parent> <element /> <element /> </parent> </parents> While processing I need to know that the elements are 1, 2, 3, 4 in the document, not that but calling position() will return 1, 2, 1, 2. Nor...

Showing and hididng div's in Internet Explorer, why can't I use absolute and relative?

I frequently use 's on my site pages to hold additional 'instructional' information for a particular page. A user can click a button such as "Show Instructions" and the is then shown on the page. When a page is loaded, I have visibility set to 'hidden'. So then a user will click on a 'Show Instructions' button to show the . Hidden, t...

jQuery animate DIV using "position"

I want animate this: $("#movethis").position({ my: "center top", at: "center bottom", of: "#nav1" }); How do I do it? ... It's kind of an oddball one, and I can't find any examples. ///udpate: got a work around. Would still prefer to do the above but this is what I got: AnElement = dynamically selects correct element theMoverPo...

Use NSUserDefaults to get to a certain position in a UIScrollView

I have an ebook style iPhone app that allows users to read a book. I have it setup so that when they leave the app, it remembers what page they were on, but not the exact spot on the page (the page can scroll quite a bit). I am using NSUserDefaults to get me back to the page, I was wondering though if anyone had any ideas about how I mi...