rizshe
02-02-2006, 06:29 AM
Hi,
Here is the .js file function in which i need to implement this:
function my_DropFunc() // Modified by Rizwan
{
var dropTarget = dd.obj.getEltBelow();
if (dropTarget == null || dropTarget == "undefined")
{
MydtObj = "none";
Glbtemp.moveTo(Glbtemp.defx, Glbtemp.defy);
}
else
{
MydtObj = dropTarget.name;
if (MydtObj == "background")
{
var temp= dd.obj.name
dd.elements.background.swapImage(temp+'.jpg');
dd.obj.hide();
}
else
{
Glbtemp.moveTo(Glbtemp.defx, Glbtemp.defy);
}
}
}
Instead of background.swapImage I want to change the iframe which is present in .asp file and change its background depending on the drop object i'm getting in .js file
Bear in mind that I already reference .js in asp file.
Thanks
Here is the .js file function in which i need to implement this:
function my_DropFunc() // Modified by Rizwan
{
var dropTarget = dd.obj.getEltBelow();
if (dropTarget == null || dropTarget == "undefined")
{
MydtObj = "none";
Glbtemp.moveTo(Glbtemp.defx, Glbtemp.defy);
}
else
{
MydtObj = dropTarget.name;
if (MydtObj == "background")
{
var temp= dd.obj.name
dd.elements.background.swapImage(temp+'.jpg');
dd.obj.hide();
}
else
{
Glbtemp.moveTo(Glbtemp.defx, Glbtemp.defy);
}
}
}
Instead of background.swapImage I want to change the iframe which is present in .asp file and change its background depending on the drop object i'm getting in .js file
Bear in mind that I already reference .js in asp file.
Thanks