Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
jolejni #1
Dragging an Image
All - I would like to take an image that sits in a table cell and be able to
drag it into another table cell labeled as 'My Favorites'. Once I drop it into
the 'My Favorites' table cell, I would like to set a session variable that
remembers the image that was dragged into the new location. I've attached a
simple layout demonstrating my question. I found allot on the internet about
DHTML and using Java to accomplish this task, however I also found a Drag
Layers option in Server Behaviors in Dreamweaver. I am not sure if Dreamweaver
and/or ColdFusion will give you this ability to drag images rather then layers.
An answer to this question with a code example would be a HUGE help to me
right now and I thank all of you in advance for your input. :confused;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body>
<table width="75%" border="1">
<tr>
<td width="43%"><div align="center"><img src="Images/web.gif" width="24"
height="24"></div></td>
<td width="23%"><div align="center"><img src="Images/warning.gif"
width="40" height="40"></div></td>
<td width="34%"><div align="center"><img src="Images/print.gif" width="24"
height="24"></div></td>
</tr>
<tr>
<td height="33" colspan="3"><div align="center"><em>My Favorites Tool
Bar</em></div></td>
</tr>
<tr>
<td height="81" colspan="3"> </td>
</tr>
</table>
</body>
</html>
jolejni Guest
-
dragging image
Hi I am having trouble in dragging a image within a loader. I am able to do zooming and rotating image but not moving image with mouse. Purpose is... -
dragging an image bigger than the dragger distance????
draggerscale = 4000 / 380.0 -- devide by float for fractional resolution sprite image loch = draggeroffset * draggerscale -
Cocoa: problem dragging PDF image rep into Keynote slide
I have a Cocoa app in which I'm having trouble dragging PDF image reps from NSImageViews (and other NSView subclasses) into Keynote slides. I... -
PC freezes when cut and dragging an image
When I cut an image and drag it, PC freezes. I've checked CPU, Memory, Video. I've done page filing and have changed the scratch disk. -
Dragging Image onto canvas changes image size
when I create a new canvas say 8.5x11, then try to drag a 4x6 size image onto it, it is not 4x6 on the canvas. it is smaller, is there a way to make...



Reply With Quote

