As one can see below, I create an image and assign it to the variable
'myImage'. In the third text span, I attempt to pass this image into
the 'SpanDragHandlerSafari' function. However, something is not
working and one cannot drag the text. The first text span, where I
pass an image to 'SpanDragHandlerSafari' with 'document.testimg' does
work.
Why does this not work? Is this a bug?
I do know that 'myImage' contains an image, because pressing the
'Test' button does what it is supposed to...insert the image into the
src property of 'buttonimg'.
If anyone knows what I am doing wrong and how to make this work, I
would appreciate knowing what that is.
Thank you.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=ISO-8859-1">
<span style="-khtml-user-drag:element; -khtml-user-select:
none;" ondragstart="SpanDragHandlerSafari( document.testimg, 'its
me' )">Drag this text (Safari). this works.</span>
<br>
<span ondragstart="SpanDragHandlerIE( 'its me IE6' )">Drag this
text (IE). This works.</span>
<br>
<span style="-khtml-user-drag:element; -khtml-user-select:
none;" ondragstart="SpanDragHandlerSafari( myImage, 'its me2' )">Drag
this text (Safari). either crashes or will not drag.</span>
</body>
</html>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden