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...
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 ...
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 ...
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...
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?
...
<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...
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 ?
...
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...
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...
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...
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!
...
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...
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...
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...
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...