deshi2003
03-19-2009, 12:14 AM
hey i need to insert image between text by javascript promptBox. know it is easy and i tried several times but i did not get successs.
please any one give me the code of inserting image between text.
please helo me out!!!!!!!!!!!
TinyScript
03-19-2009, 12:28 AM
Hmmm
what do you mean?
show us your code
TinyScript
03-19-2009, 12:30 AM
nevermind
check this out
http://slayeroffice.com/code/custom_alert/
deshi2003
03-19-2009, 08:52 AM
<!_ Entering custom image--?
<html>
<head>
<script type="text/javascript">
function disp_prompt()
{
var image_ url=prompt("Please enter your image url","http://");
if (name!=null && name!="")
{
image_ url="<img src='"+image_ url+"'/>";
//document.write(image_ url);
}
}
</script>
</head>
<body>
<input type="button" onclick="disp_prompt()" value="Display a prompt box" />
</body>
</html>
please help me
TinyScript
03-19-2009, 09:02 AM
http://javascript.internet.com/forms/image-upload-preview.html
here's a script all ready for you
TinyScript
03-19-2009, 09:05 AM
<html>
<head>
<script type="text/javascript">
function disp_prompt()
{
var image_ url=prompt("Please enter your image url","http://");
if (name!=null && name!="")
{
image_ url="<img src='"+image_ url+"'/>";
//document.write(image_ url);
}
}
</script>
</head>
<body>
<input type="file" onclick="disp_prompt()" value="Display a prompt box" />
</body>
</html>
this needed to be type="file"
Works!!!