||View All MessagesBack to WebFX|
You'd better use the code provided by Jeffrey Jangli above.|
Do you mind showing how it an be done? I am a little bit confused. Where should I setCapture in IE?
From: Erik Arvidsson
Sent: July 1, 2003
Subject: Re:Dragging iframe by an anchor element
The win controls script works with the window and not on iframes. You can get what you want by using the generic move (although this needs to be slightly modified to work with iframs. You need to use setCapture in IE)
I found a great sript on your site that let user drag the window by dragging an anchor located inside that window (http://webfx.eae.net/dhtml/wincontrols/demo.html). Can the same concept be applied to the iframe? In other words let's say I have a window with an iframe in it. Inside that iframe there is an anchor element (<div></div> for example). Is it possible to make an iframe drag around inside main window by dragging that <div>?
P.S. Awesome site.