Click here to Skip to main content
15,886,963 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: shared hosting vs cloud Pin
JV999923-Jun-11 3:58
professionalJV999923-Jun-11 3:58 
QuestionHow bypass this ? Pin
Vimalsoft(Pty) Ltd20-Jun-11 19:03
professionalVimalsoft(Pty) Ltd20-Jun-11 19:03 
QuestionDrop down menu Pin
Dave McCool20-Jun-11 5:53
Dave McCool20-Jun-11 5:53 
AnswerRe: Drop down menu Pin
enhzflep20-Jun-11 6:10
enhzflep20-Jun-11 6:10 
GeneralRe: Drop down menu Pin
Dave McCool22-Jun-11 3:38
Dave McCool22-Jun-11 3:38 
QuestionLive Streaming on Windows Server Pin
Jassim Rahma19-Jun-11 22:44
Jassim Rahma19-Jun-11 22:44 
QuestionLaunching a program with ActiveXObject Pin
musefan16-Jun-11 1:08
musefan16-Jun-11 1:08 
QuestionImage moves while doing show/hide Pin
Nitin198114-Jun-11 1:50
Nitin198114-Jun-11 1:50 
Hi
I'm trying to show/hide a panel through javascript by using below code. Problem is when I click on the arrow and hide the panel below, arrow moves from its position towards left. I've tried many things but can't have it still. Please help me to fix it.

Thanks in advance

--------------------------------------------
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>

<script language="javascript">
function change()
{
var imgEle = document.getElementById('imgArrow');
var Panel1 = document.getElementById('<%= Panel1.ClientID %>');
if(Panel1.style.display == 'block')
{
Panel1.style.display='none';
imgEle.src = "images/lft-arw.gif";

}
else
{
Panel1.style.display='block';
imgEle.src = "images/drop-arw.gif";
}

}
</script>

</head>
<body>
<form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td colspan ="2">
</td>
</tr>
<tr>
<td style="width: 100px">
<table border="3" bordercolor="blue" cellpadding="0" cellspacing="0" style="width: 100px;text-align: center">
<tr>
<td style="width:98px" align="left">Price
</td>
<td style="width:2px;" align="right"><IMG id="imgArrow" SRC="images/drop-arw.gif" onclick="javascript:change();" /></td>
</tr>
<tr>
<td colspan="2" id="pnlParent">
<asp:Panel ID="Panel1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td>From&nbsp;</td>
<td><asp:textbox runat=server ID="txtFrom" />
</td>
</tr>
<tr>
<td>To&nbsp;</td>
<td><asp:textbox runat=server ID="txtTo" /></td>
</tr>
<tr>
<td colspan ="2" align="right">
<asp:Button Text="Search" runat="server" ID="cmd" />
</td>
</tr>

</table>
</asp:Panel>
</td>
</tr>
</table>
</td>

</tr>
</table>

</form>
</body>
</html>
Don't Quit

AnswerRe: Image moves while doing show/hide Pin
Shahriar Iqbal Chowdhury/Galib22-Jun-11 11:21
professionalShahriar Iqbal Chowdhury/Galib22-Jun-11 11:21 
QuestionStyling different states for an element Pin
Ali Al Omairi(Abu AlHassan)12-Jun-11 22:50
professionalAli Al Omairi(Abu AlHassan)12-Jun-11 22:50 
AnswerRe: Styling different states for an element Pin
Gerben Jongerius3-Aug-11 2:15
Gerben Jongerius3-Aug-11 2:15 
GeneralRe: Styling different states for an element Pin
Ali Al Omairi(Abu AlHassan)3-Aug-11 23:27
professionalAli Al Omairi(Abu AlHassan)3-Aug-11 23:27 
QuestionCss Query Pin
Benjamin Kadurkotta5-Jun-11 23:36
Benjamin Kadurkotta5-Jun-11 23:36 
AnswerRe: Css Query Pin
Shameel14-Jul-11 2:58
professionalShameel14-Jul-11 2:58 
QuestionFont looks different with same styles Pin
Phatinox5-Jun-11 23:27
Phatinox5-Jun-11 23:27 
AnswerRe: Font looks different with same styles Pin
Graham Breach6-Jun-11 2:49
Graham Breach6-Jun-11 2:49 
AnswerMessage Removed Pin
6-Jun-11 2:51
professionalUser 17164926-Jun-11 2:51 
GeneralRe: Font looks different with same styles Pin
Phatinox6-Jun-11 3:38
Phatinox6-Jun-11 3:38 
QuestionStyling a message Box Pin
Ali Al Omairi(Abu AlHassan)28-May-11 22:19
professionalAli Al Omairi(Abu AlHassan)28-May-11 22:19 
Questionprogress loading page? Pin
Joan M27-May-11 1:12
professionalJoan M27-May-11 1:12 
Questionfree and nice Image map software? [modified] ==> SOLVED Pin
Joan M27-May-11 0:31
professionalJoan M27-May-11 0:31 
AnswerRe: free and nice Image map software? [modified] ==> SOLVED Pin
JP_Rocks29-May-11 23:00
JP_Rocks29-May-11 23:00 
NewsCode Project virtual event on HTML5 and CSS3 premiers today! Pin
sivaddrahcir25-May-11 5:27
sivaddrahcir25-May-11 5:27 
Questiontop hosting companies Pin
Jassim Rahma22-May-11 3:38
Jassim Rahma22-May-11 3:38 
AnswerRe: top hosting companies Pin
Dalek Dave22-May-11 4:02
professionalDalek Dave22-May-11 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.