Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Insert Graphic

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dancer - 05 Aug 2007 17:27 GMT
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?
Mark Rae [MVP] - 05 Aug 2007 17:41 GMT
> 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" />

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Peter Bromberg [C# MVP] - 05 Aug 2007 18:36 GMT
Photoshop should have an option to export the slices with supporting HTML.
All you need to do is paste the HTML into the ASPX page.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
bogMetaFinder:    http://www.blogmetafinder.com

> 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?
dancer - 06 Aug 2007 15:42 GMT
Thank you. That worked.  But I'm having trouble with the "onmouseover" and
the "onmouseout."
Do you have any counsel for that?

> Photoshop should have an option to export the slices with supporting HTML.
> All you need to do is paste the HTML into the ASPX page.
[quoted text clipped - 9 lines]
>> asp.net file.
>> Who knows how?
Mark Rae [MVP] - 06 Aug 2007 17:20 GMT
> 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...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

David Jackson - 06 Aug 2007 18:19 GMT
>> Thank you. That worked.  But I'm having trouble with the "onmouseover"
>> and the "onmouseout."
[quoted text clipped - 4 lines]
> 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?

;-)
dancer - 06 Aug 2007 19:34 GMT
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>

>> Thank you. That worked.  But I'm having trouble with the "onmouseover"
>> and the "onmouseout."
[quoted text clipped - 4 lines]
> There really is no point in saying that you're "having trouble" if you
> don't actually tell us what trouble you're having...
Mark Rae [MVP] - 06 Aug 2007 20:16 GMT
> onmouseover="document.about.src='http://www.xxxxxxxx.com/images/menu/pictures_aspx/sidebar_Green_02.jpg'"

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...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

dancer - 06 Aug 2007 22:24 GMT
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?

>> onmouseover="document.about.src='http://www.xxxxxxxx.com/images/menu/pictures_aspx/sidebar_Green_02.jpg'"
>
[quoted text clipped - 10 lines]
> seriously non XHTML-compliant, which means that things may not be working
> as you expect in anything other than IE...
Mark Rae [MVP] - 06 Aug 2007 22:35 GMT
> How do YOU code onmouseover and onmouseout?

Same as you...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

dancer - 07 Aug 2007 14:07 GMT
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..."

>> How do YOU code onmouseover and onmouseout?
>
> Same as you...
Mark Rae [MVP] - 07 Aug 2007 16:41 GMT
> 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...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

dancer - 06 Aug 2007 16:09 GMT
Thank you.  That worked.  But I am having trouble with  "onmouseover" and
"onmouseout."  do you have any counsel for that?

> Photoshop should have an option to export the slices with supporting HTML.
> All you need to do is paste the HTML into the ASPX page.
[quoted text clipped - 9 lines]
>> asp.net file.
>> Who knows how?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.