|
|
|
date: Fri, 19 Oct 2007 09:53:51 -0400,
group: microsoft.public.inetsdk.html_authoring
back
Put image BESIDE code generated in script tags
I have a javascript that puts 3 drop-downs on a page, Month, day, Year,
followed by a calendar image. When the user clicks the calendar image any
date selection updates the 3 dropdowns. That is all done via javascript (not
mine, one downloaded from the net).
Beside any field element we have a Question mark '?'. When the user clicks
it, or hovers over it, it tells them about what is expected. I can't get
that question mark beside the calendar image. It always ends up below.
Here's the html:
<script type="text/javascript">DateInput('startdate', true, 'MM/DD/YYYY',
'12/5/2007')</script>
<img id="ctl00_ContentPlaceHolder1_ch11_Image1" title="The expected
start date of the campaign Message CH11" onClick="alert('The expected start
date of the campaign\n\nMessage CH11')" src="../images/question2.gif"
style="border-width:0px;cursor: pointer; cursor: hand;" />
Any ideas would be appreciated. Thanks.
date: Fri, 19 Oct 2007 09:53:51 -0400
author: Roger
RE: Put image BESIDE code generated in script tags
Roger,
It looks like the Javascript is also generating the drop down list boxes.
There can be two things happening here. If the question mark is going below
the image (meaning next line) then the three dropdown list boxes and the
image are wrapped by a block tag (div, table) etc.. If it is going under the
image, then the image is rendered as a floating layer.
One way or another you have to go into the script and see where it is
document writing the information. Like below you might be able to add another
parm to the javascript and change the code to write the image next to it.
DateInput('startdate', true, 'MM/DD/YYYY', '12/5/2007', 'message goes here')
Shrini
"Roger" wrote:
> I have a javascript that puts 3 drop-downs on a page, Month, day, Year,
> followed by a calendar image. When the user clicks the calendar image any
> date selection updates the 3 dropdowns. That is all done via javascript (not
> mine, one downloaded from the net).
>
> Beside any field element we have a Question mark '?'. When the user clicks
> it, or hovers over it, it tells them about what is expected. I can't get
> that question mark beside the calendar image. It always ends up below.
>
> Here's the html:
>
> <script type="text/javascript">DateInput('startdate', true, 'MM/DD/YYYY',
> '12/5/2007')</script>
> <img id="ctl00_ContentPlaceHolder1_ch11_Image1" title="The expected
> start date of the campaign Message CH11" onClick="alert('The expected start
> date of the campaign\n\nMessage CH11')" src="../images/question2.gif"
> style="border-width:0px;cursor: pointer; cursor: hand;" />
>
> Any ideas would be appreciated. Thanks.
>
>
>
date: Thu, 20 Dec 2007 11:29:00 -0800
author: Shrini
|
|