|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><script type="text/javascript">
</script>
</head><body>
<a href="http://www.msn.com">
<img src="" alt="img goes here" width="50px" height="50px"
onmouseover="this.style.width='100px';this.style.height='100px'"
onmouseout="this.style.width='50px';this.style.height='50px'">
</a>
<a href="http://www.msn.com">
<img src="" alt="img goes here" width="50px" height="50px"
onmouseover="this.style.width='100px';this.style.height='100px'"
onmouseout="this.style.width='50px';this.style.height='50px'">
</a>
<a href="http://www.msn.com">
<img src="" alt="img goes here" width="50px" height="50px"
onmouseover="this.style.width='100px';this.style.height='100px'"
onmouseout="this.style.width='50px';this.style.height='50px'">
</a>
<a href="http://www.msn.com">
<img src="" alt="img goes here" width="50px" height="50px"
onmouseover="this.style.width='100px';this.style.height='100px'"
onmouseout="this.style.width='50px';this.style.height='50px'">
</a>
</body></html>
|
|
|
|
|
Check if this post helps you,
http://opexsolution.com/forum/viewtopic.php?f=15&t=30&p=89#p89
|
|
|
|
|
hi iam using asp.net with c#
i have the images displayed in the page
when any image is click then the image size should be big
in the same page
can you give me example which helps me
|
|
|
|
|
developerit wrote: when any image is click then the image size should be big
in the same page
You need to write a javascript method to show the image in a overlayed div tag. You can use that javascript either on Mousehover on image or click - depends on your choice!
developerit wrote: can you give me example which helps me
Google for it, quite common thing.
|
|
|
|
|
hi, iam using this code
protected void Button1_Click(object sender, EventArgs e)
{
string fn=FileUpload1.PostedFile.FileName;
string[]fi=fn.Split('\\');
string name=fi[fi.Length-1];
FileUpload1.PostedFile.SaveAs(Server.MapPath("images\\"+name));
ImageButton1.ImageUrl = "..images" + fn.ToString();
}
but image is not displaying in image button at run time
can you correct the code where iam going wrong
|
|
|
|
|
developerit wrote: ImageButton1.ImageUrl = "..images" + fn.ToString();
Image path needs to be corrected. "..images" is wrong (also you asre missing a forward slash after images folder!). Either a forwardslash or a tilda(for root directory) needs to be there. You have to check what path it has to be to fix it.
Probably it should be:
ImageButton1.ImageUrl = "~/images/" + fn.ToString();
ImageButton1.ImageUrl = "../images/" + fn.ToString();
|
|
|
|
|
Dear All,
I have very simple statements which popsup a menu
as bellow
<script language="javascript" type="text/javascript">
var ie5=document.all && !window.opera
var ns6=document.getElementById
if (ie5||ns6)
document.write('<div id="popitmenu"></div>')
function showmenu(e, which, optWidth)
{
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.visibility="visible";
return false
}
function hidemenu()
{
var div = document.getElementById('popitmenu');
if (div)
div.style.visibility="hidden";
}
if (ie5||ns6)
document.onclick=hidemenu;
</script>
<body style="width:100%; height:100%">
<form id="form1" runat="server">
<div>
<a id="a" onclick="return showmenu(event,linkset[1], '180px');">Click here</a>
</div>
</form>
</body>
every time i click on "Click here" which displays popupmenu it suddenly hides, I debugged the statements and I got that every time the function hidemenu() is executed. as I am assigning hidemenu function to body click event which means, If i click at body the popupmenu should hide, but the question is here, If i am clicking at "Click here" why the hidemenu is called, or how I can hide the popupmenu.
simply, when I click at click here the popup should appear but when i am clicking at other places the popup should hide, how to achive it in above?
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Abdul Rahman Hamidy wrote: If i am clicking at "Click here" why the hidemenu is called, or how I can hide the popupmenu.
Because, Click here is a part of the page body (its in it!)
Abdul Rahman Hamidy wrote: simply, when I click at click here the popup should appear but when i am clicking at other places the popup should hide, how to achive it in above?
On body click, call a javascript method where you can check if the click was on 'Click Here' div tag, if so, dont do anything or else hide it.
|
|
|
|
|
Here is a simple example which i believe
accomplishes what you want ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script>
linkset = new Array("hiyas","sup");
showmenu = function(thiss){
pop = document.getElementById("popmenu");
pop.innerHTML = "px = "+ thiss.px + " link = " + linkset[thiss.link]
pop.style.visibility = 'visible';
}
hide = function(e){
if(e){
id = e.target.id}
else{
id = event.srcElement.id}
if(id !="show"){
document.getElementById("popmenu").style.visibility = 'hidden';}
}
document.onclick=hide;
</script></head>
<body>
<form id="form1" runat="server">
<div>
<a id="show" onclick="this.px='180px';this.link='1';showmenu(this)" >
Click here
</a><br>
<a id="show" onclick="this.px='90px';this.link='0';showmenu(this)" >
Click here
</a>
<div id="popmenu">Hello Im a menu</div>
</div>
</form>
</body>
</html>
|
|
|
|
|
Thank you very much, the hide function could do the work.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Abdul Rahman Hamidy wrote: Thank you very much, the hide function could do the work.
You are most welcome.
|
|
|
|
|
Hi,
I am creating a TCP Chat application using Asynchronous method calls and I have created 2 applications, one of which is a mobile app that runs on a PDA and the other on a desktop pc.
At the moment i can send text back and forth but i would like to send emoticons too. I am using a richtextbox, how could i go about doing this?
I would appreciate your thoughts and advice.
Thanks,
|
|
|
|
|
Eagle32 wrote: I am using a richtextbox, how could i go about doing this?
How about using some textual representation of the emoticon? Suppose you have a , you could encode this image as :-D , and a encoded as :-@ . Replace the string with the images before display, and replace the images with their respective codes when you want to send/save the message.
Would be somewhat similar to coding your own "escape characters".
I are Troll
|
|
|
|
|
I find the repetition of sets of controls for each of the EditItemTemplate, InsertItemTemplate, and ItemTemplate templates of a FormView to be tedious and risky, in terms duplicating layout and code etc. I would much rather create a xxxDetails user control, and use this in each template, cutting layout and code location down to one location.
However, this introduces several complexities for data binding scenarios. Are there any extablished patterns or practice guides for using user controls in these scenarios?
|
|
|
|
|
I using ms asp.net ajax.
uploadImage method in js. this method Asynchronous upload image.
function uploadImage(file){
Webservice.uploadImage(file, succeedCallback);
anotherFunction();//this is don't definition, so report err
}
but I changed:
function uploadImage(file){
Webservice.uploadImage(file, succeedCallback);
//anotherFunction();//I comment it, but still report same err at this
}
How do I?
Thanks.
|
|
|
|
|
If it is so then:
Clean the solution, rebuild it... if using IIS, then reset it.
Clear browser cache... run the application after all this...
|
|
|
|
|
Greetings
I am doing asp.net web for hotel entry
When user search hotel. i want to show that hotel's location in google map with my text
I searched for that but i didn't get what I want
I mean I don't want to create maps for 1 by 1 hotel.
How can I solve this?
|
|
|
|
|
|
In my site there is a portal where user can upload the you tube URL in my web page.Once the user will provide the URL of you tube video my intention that i can save the url link in my databse and then i want to show the uploaded videos in my web page.plz guide...thanks
|
|
|
|
|
|
Hello,
I have hosted my website on server is lying in USA. I have used system.Datetime.Now() for date operations, whereas my clients are from india and it shows me around 12 hours difference. How can i map this time zone? I don't want to store the client's machine time but only server end time.
Please help me.
waiting for your prompt reply.
Thanks.
|
|
|
|
|
hi,
You can use DateTime.Now.ToUniversalTime()
|
|
|
|
|
Thanks for your reply sir.
DateTime.Now.ToUniversalTime() returns UTC datetime.
How can i get the india's datetime from this.
Please help me.
|
|
|
|
|
|
hello,
i have referred that link but i am not able to get exact idea from it.
|
|
|
|