473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

A question about Javascript Banners

I managed to make an image to constantly change every once in a while.
However, I don't know how to make it so that it is XHTML 1.1 strict.

If anyone wants to see the code, just reply.
Jul 20 '05 #1
1 1524


ampulator wrote:
I managed to make an image to constantly change every once in a while.
However, I don't know how to make it so that it is XHTML 1.1 strict.

If anyone wants to see the code, just reply.


I suggest you make a test page and post the URL with the question over
in comp.lang.javascript.
Guessing totally I assume you need
<img id="anImage" src="whatever.gif" alt="whatever" />
and then
var img;
if (document.getElementById) {
img = document.getElementById('anImage');
if (img) {
img.src = 'whatelse.gif';
img.alt = 'whatelse';
}
}
to change the src (and the alt if needed).
However XHTML 1.1 doesn't make much sense in my view unless you write
for Mozilla and Opera 7.50+ only as XHTML 1.1 should not be served as
text/html that IE needs:
http://www.w3.org/TR/xhtml-media-types/
http://www.w3.org/TR/xhtml-media-types/#summary

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: Matt Saunders | last post by:
Hi all, In a couple of weeks I get my big break. I joined my present employer (an ISP) in a real bottom-rung-of-the-ladder customer support job several months ago, without even getting an...
1
by: FS | last post by:
where is it that you are adding the code for the banner to pop up nex to your logo? Ive tried adding the image in the banners section to n avail. Any thoughts http://eye.cc -php- web design
0
by: Ron Lounsbury | last post by:
We have 2 copies of our web application - Development and Checkout. We have noticed that when the QA quys go through our QA version, they will sometimes find that pages are missing the banners. ...
6
by: Andy | last post by:
I'm not sure why my checkbox code is not working as per intended. It always keeps saying "Please select the department" even though I check the department... appreciate any help. <!DOCTYPE HTML...
9
by: Carter Smith | last post by:
http://www.icarusindie.com/wiki/index.php/Server-Side_Javascript_Check Sample source included This method requires that your pages are PHP enabled and you have mySQL. Although I suppose you...
2
by: sgMuser | last post by:
Hi, I am not a good developer of Javascript codes. Needs this help to make some modification to this famous free javascript from Anarchos. i am using this in one of my webpage. What it does is,...
2
by: Crash44 | last post by:
This is driving me quite nuts. I have created several flash banners for a record label. They are meant to link to an artist splash page. Simple enough, right? Both Mac and PC users can click on...
5
by: johnric | last post by:
I can't seem to get firefox to read the image size in my javascript. It will work in IE and firefox but firefox will not read the image size. Can anyone see the problem in my code? I am new to...
3
by: preethikuppusamy | last post by:
I have included banner images in an array and used settimeout fun to dislay it in my home page. Now i have included those banners in a table and now i have to fetch it from the table and include in...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.