Insert Graphic

D

dancer

Using ASP.net 1.1
I have a graphic I sliced in Photoshop. I would like to insert that into an
asp.net file.
Who knows how?
 
M

Mark Rae [MVP]

Using ASP.net 1.1
I have a graphic I sliced in Photoshop. I would like to insert that into
an asp.net file.
Who knows how?

<img src="MyImage.jpg" alt="MyImage" />
 
D

dancer

Thank you. That worked. But I'm having trouble with the "onmouseover" and
the "onmouseout."
Do you have any counsel for that?
 
D

dancer

Thank you. That worked. But I am having trouble with "onmouseover" and
"onmouseout." do you have any counsel for that?
 
M

Mark Rae [MVP]

Thank you. That worked. But I'm having trouble with the "onmouseover" and
the "onmouseout."
Do you have any counsel for that?

Haven't we been here before...?

There really is no point in saying that you're "having trouble" if you don't
actually tell us what trouble you're having...
 
D

David Jackson

Haven't we been here before...?

There really is no point in saying that you're "having trouble" if you
don't actually tell us what trouble you're having...

Aren't you MVPs supposed to be psychic?

;-)
 
D

dancer

Here is my code. The red_02 shows, but nothing changes at "onmouseover"
I have checked the names several times to see if the pictures exist in the
directory named.
<TR>

<TD><A
onmouseover="document.about.src='http://www.xxxxxxxx.com/images/menu/pictures_aspx/sidebar_Green_02.jpg'"

onmouseout="document.about.src='http://www.xxxxxx.com/images/menu/pictures_aspx/sidebar_red_02.jpg'"

href="../about.htm">

<IMG SRC="http://www.xxxx.com/images/menu/pictures_aspx/sidebar_Red_02.jpg"
WIDTH=120 HEIGHT=46 border="0" ALT=""></TD>

</TR>

<TR>

<TD>

<A
onmouseover="document.about.src='http://www.xxxxxx.com/images/menu/pictures_aspx/sidebar_Green_03.jpg'"

onmouseout="document.about.src='http://www.xxxxxxx.com/images/menu/pictures_aspx/sidebar_Red_03.jpg'"

href="../about.htm">

<IMG
SRC="http://www.xxxxxxx.com/images/menu/pictures_aspx/sidebar_Red_03.jpg"
WIDTH=120 HEIGHT=44 border="0" ALT=""></TD>

</TR>
 
M

Mark Rae [MVP]


1) document.about??? What's that? Do you have an element with an ID of
'about'...?

2) Can you change the onmouseover temporarily to be

onmouseover="(alert('Hello');"

That will at least clarify that the onmouseover is actually working...

3) What browser are you using? Reason I ask is that your markup is seriously
non XHTML-compliant, which means that things may not be working as you
expect in anything other than IE...
 
D

dancer

I figured out my problem. Thanks.

This is code I inherited in a web site and have been using it since.
How do YOU code onmouseover and onmouseout?
 
D

dancer

But you said, "...your markup is seriously
non XHTML-compliant, which means that things may not be working as you
expect in anything other than IE..."
 
M

Mark Rae [MVP]

But you said, "...your markup is seriously
non XHTML-compliant, which means that things may not be working as you
expect in anything other than IE..."

That's correct - your markup is not XHTML-compliant (e.g. you have <TD>
instead of <td> etc) which intially made me think that that might be
stopping your JavaScript from running...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top