We help IT Professionals succeed at work.

why doesn't my image show on the marquee!!

ChefMaha
ChefMaha asked
on
223 Views
Last Modified: 2008-08-21
Hi,

my marquee works completely fine with plain text. as soon as I add an image, it's completely blank =(

what should I do?
<marquee direction="left" class = "banner" behavior="scroll">
<img src="images/yellowdot.gif" />
</marquee>

Open in new window

Comment
Watch Question

CERTIFIED EXPERT
Expert of the Year 2008
Top Expert 2008

Commented:
The path to the image may not be right. The attached code worked for me. Perhaps your path should be:
"/images/yellowdot.gif"
<marquee direction="left" class = "banner" behavior="scroll">HI
<img src="http://www.google.com/intl/en_ALL/images/logo.gif" />
</marquee>

Open in new window

Author

Commented:
no the path is correct because when I tried to display the images without a marquee, it displayed fine

Author

Commented:
by the way, when I had both text and image in the marque none were being displayed (note that text by itself is displayed perfectly)

Author

Commented:
you know it's really weird. cuz I tested the code on another page and it was working fine. But only on this page, it won't work at all.
<html>
 
<head>
<link rel="stylesheet" href="style.css" type="text/css" media="screen"/>
</head>
 
<body>
 
<div id="header">
<table height= 137px cellpadding=0 cellspacing=0 dir="rtl">
<tr valign="bottom" >
<td valign="bottom" > <img src="images/homelink.gif" /></td>
<td valign="bottom" > <img src="images/aboutuslink.gif" /></td>
<td valign="bottom" > <img src="images/aboutadhdlink.gif" /></td>
<td valign="bottom" > <img src="images/activitieslink.gif" /></td>
<td valign="bottom" > <img src="images/medicalnewslink.gif" /></td>
<td valign="bottom" > <img src="images/contactuslink.gif" /></td>
<td valign="bottom" > 
<img src="images/en-aboutuslink.gif" /></td>
</tr>
</table>
</div>
 
<div id="content">
 
<table dir="rtl" cellpadding=0 cellspacing=0>
<tr>
<td height=170px valign="center" colspan=2>
<img style="margin: 0px 0px 0px 0px" src="images/flashingpart.gif" />
 
</td>
</tr>
 
<tr>
<td colspan=2 style="background: url('images/banner.gif') no-repeat;">
 
 
</td>
</tr>
 
<tr>
 
<td>
 
 
<p class="title">
E,EH9) /9E '671'( A17 'D-1C) H *4** 'D'F*('G
</p>
 
<p class="paragraph">
GJ E,EH9) .J1J) *H9HJ) :J1 1(-J) *#33* AJ 3 JHDJH 2004E -J+ J9*(1 '671'( A17 'D-1C) H *4** 'D'F*('G EF #C+1 'D#E1'6 'D95(J) 'F*4'1'K D/I 9J'/'* 'D#95'( H 'D7( 'DFA3J DD#7A'D. H'671'( A17 'D-1C) H*4** 'D'F*('G EF #C+1 'D'671'('* 'D3DHCJ) 'F*4'1'K (JF #7A'D 'DE/'13 'D'(*/'&J) HEF #C+1 'DE4'CD 'DE2EF) D/I 'D#7A'D 3 - 5%. 
</p>
</td>
 
<td>
<br>
<table name="LinksTable" dir="rtl">
<!-- first row in LinksTable -->
<tr>
<td><img src="images/stories.gif" /></td>
<td><img src="images/articles.gif" /></td>
<td><img src="images/download.gif" /></td>
<marquee direction="left" class = "banner" behavior="scroll">
<img src="images/yellowdot.gif" />
</marquee>
</tr>
 
<!-- second row in LinksTable-->
<tr>
<td><img src="images/joinus.gif" /></td>
<td><img src="images/yoursupport.gif" /></td>
<td><img src="images/doctors.gif" /></td>
</tr>
 
<!-- end of Links Table -->
</table>
 
</td>
</tr>
 
</table>
 
</div>
 
<div id="footer">
</div>
 
</body>
 
</html>

Open in new window

Author

Commented:
ok it worked!

all I had to do is replace the  with a div

thanks for your help
<div id="banner">
 
<marquee direction="left" class = "banner" behavior="scroll">
<img src="images/yellowdot.gif" />
</marquee>
 
</div>

Open in new window

CERTIFIED EXPERT
Expert of the Year 2008
Top Expert 2008

Commented:
I tried your code and used google's image instead of your yellowdot image (because I don't have access to it), and it works. So, I suspect the issue is in your stylesheet. Disable the stylesheet for testing purposes and verify that it works.

Author

Commented:
oh I already found the answer thank you.

I put my solution in the post right before yours
CERTIFIED EXPERT
Expert of the Year 2008
Top Expert 2008
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.