position

Jquery - Load div with random margins / position

Hello. I'm looking to use jQuery to load Divs with random margins effecting the css. Below is the script I'm attempting use, trying to create a number random from 1-500, and loading that as the margin. But I'm not a jQuery wiz, and I'm missing something. Thanks so much for the help! <script type="text/javascript"> $(function(){ $("#r...

How to fake mouse cursor position in Windows Forms C#?

I have this Windows Forms application with a simple balloon tooltip. Depending on the application's window location on the desktop and the mouse cursor location, the balloon 'tip' (or balloon pointing arrow) may or may not be pointing to the location I want. For instance, my app snaps to the desktop sides and when it's snapped to the ri...

How to shift item position on iPhone and iOS

Sorry guys, I hate asking dumb questions but I have seriously been searching for days online to no avail. Every method I've tried with item.bounds or the like has failed miserably. I'm just trying to move some elements, like a UILabel and a UIButton over a few pixels under a certain circumstance. Just a simple point to a tutorial that I ...

Is there a way to determine that a .a or .so library has been compiled as position indepenent code?

I am getting a linking error when compiling the numpy library against lapack indicating I need to compile lapack with -fPIC. I thought I had done just that. Is there a way to determine that the produced lapack library is position independent? Thanks, S ...

Wordpress post image customization

Hello, I just started creating my first WP theme after doing the HTML/CSS. All good so far! Almost done in fact. One problem though: I want each post image to have a surround around them. I could include it in the image, but I'd rather that when I post an image, it sits inside the surround. I thought of offsetting a BG image on each po...

Get the position of an element in Android's List View

Hey, my friend and i develop a Android programm. Now we got to the question if it's possible to get the actual position of an ListElement. Example: You drag the list up and down, and now you want to konw which element is on the center of the screen? can anyone help us? ...

Get Rectangle of Image JPG and generate thumbnail in rectangle

I try explain: I have a JPG image (img A). This A.jpg has contents -colors, it's a picture of persons- and a one more little white rectangle (color white; the head of person is a white rectangle). I need get the position of rectangle in A.jpg. Then, I have another B.jpg image, more little; and I'll generate thumbnail of B.jpg , with R...

Setup QTabBar position

If I use QTabWidget i can call setTabPosition to change it to "South" and have tabs appear at the bottom. Is there a similar behavior for QTabBar? Currently on Mac the top left and right corners are rounded and the bottom ones are not. I wish to invert this look and feel - the top corners to be square and the bottom ones to be rounded. ...

jquery mouse position relative window

Hi Guys, I'm trying to get the exact mouse position relative to the window. Here is my issue... document.height = 1600 (actual document size) window.height = 400 (viewable) I need to figure out the mouse position relative to the window, not to the document which the pageY attribute provides. It's for a large tooltip, which gets ...

Using JQuery to horizontally center content within a horizontally scrolling page

I have a page with 3 content areas (divs with the class "section"). http://refreshperspective.com/CLIENTS/unboxed/products.html I'm using JQuery to scroll horizontally to these three divs. The issue I am having is keeping the content in the div centered when the window is resized. I have been using the following code: var wind = $(win...

Memory comparison (with difference position)

Hello! Is there a way to compare two blocks of memory, and know at which point they differ (memcmp() does not meet this requirement)? I wouldn't want to perform costly loops. Thanks in advance. Regards, Neo_b ...

Sharing location via MMS or email on iPhone

From the native iPhone map app, it is possible to share a position via email or MMS. How (if) can this be achieved in a custom app? ...

position of homescreen icons

Hi, Is it possible to organize the homescreen icons programatically so that i can arrange each icon's position? thanks ...

how to get stream positions of xml elements in .NET

How can I get the stream position of an XElement in .NET 4 in a reasonably efficient way? 1 2 3 4 5 6 7 8 01234567890123456789012345678901234567890123456789012345678901234567890123456789012 <root><group id="0" combiner="or"><filter id="1" /><filter id="2" /></group></root...

android gallery image position problem

As you in following android album widget images placement is from middle of the gallery i want to start image placement from beginning of the album. ...

Is it possible to have a child element behind his parent element with z-index

Hi, I would like to know if it possible to have a child element behind his parent element with z-index. I would like to use the parent div as transparent color layer on top of his content. Thanks ...

IE8, positioning and hover not working.

Hi, I have a pseudo-gallery set up to display thumbnails and display enlarged image when hovered on thumbnails. The enlarged image is positioned relative to its parent thumbnail. This works in Google chrome and Mozilla Firefox but not in IE8. I have done some research with no progress on the matter. In IE8, both thumbnail and enlarged...

Text-Indent vs Position for SEO

What's the best way to hide a text element and replace it with an image while still maintaining good SEO. I've seen negative text-indent, but I prefer absolute positioning with negative top. So what I'd like to know is which is better for SEO. Do most search engines consider text elements with negative top with absolute positioning; lik...

Get window position relative to the workspace it's placed on in PyGtk

Hi, I'm trying to improve minimize to tray feature of some application and I want to show window on tray icon click if it was minimized to tray or placed not on the current workspace. I encountered the problem that occurs when I try to show (un-minimize) the app's window that's visible on the workspace (let's say 'workspace 1') other th...

Android: EditText listener for cursor position change

I'm looking for a way to detect a cursor position changed in an EditText. I couldn't find anything in the documentation so far. Has anyone solved this already? ...