Question : How to Show Up image Use this Script please Help

Hi all,  if any   body can  help me

I have images dispaly from DataBase in DataList , i need to apply this script that show up image

http://www.sitepoint.com/forums/showthread.php?t=372549 to the image

This Code datalist

<asp:DataList ID="DataList1" runat="server" DataKeyField="ID"
            DataSourceID="SqlDataSource1">
            <ItemTemplate>
                <asp:Image ID="Image1" runat="server" Height="127px"
                    ImageUrl='<%# Eval("Image", "~/images/Products/{0}") %>' Width="135px" />
                <br />
                <br />
                <br />
            </ItemTemplate>
        </asp:DataList>

how i can use this  script to display image from datalist ?


Answer : How to Show Up image Use this Script please Help

Hi ,
Try These  Example:
<html>
<head>
<script language="javascript" type="text/javascript">
 // It USed to add new inner content your Existing div "DivEx"
 function show_prompt()
 {
   var str=prompt("Please enter Div input Text:");
         if (str!=null && str!="" && str !='undefined' )
        {
             var divobj=document.getElementById("DivEx");
                    divobj.innerHTML=str;      
        }
 }
 // It Used to add new div in your Existing Div "DivEx" , It s Addtional examples

function addElement() {
  var ni = document.getElementById('DivEx');
  var numi = document.getElementById('theValue');
  var num = (document.getElementById('theValue').value -1)+ 2;
  numi.value = num;
  var newdiv = document.createElement('div');
  var divIdName = 'my'+num+'Div';
  newdiv.setAttribute('id',divIdName);
  newdiv.innerHTML = 'I am Your New Div:' + divIdName;
  ni.appendChild(newdiv);
}

</script>
</head>
<body>
<input type="button" onclick="show_prompt()" value="Enter Input Box" />
<input type="button" onclick="addElement()" value="CreateInnerDiv" />
<input type="hidden" value="0" id="theValue" />
<div id="DivEx">INACTIVE</div>
</body>
</html>
Random Solutions  
 
programming4us programming4us