Image maps + gifs/pngs with transparent backgrounds?
see http://www.w3schools.com/tags/tag_area.asp if you need help with image maps
If you want to use javascript see http://www.w3schools.com/js/js_image_maps.asp
try
<img src="image1.jpg" style="float: left;">
<img src="image3.jpg" style="float: right;">
<img src="image2.jpg">
NOTE: the order is important.
The other option is to use display: inline
eg
<img src="image1.jpg" style="display: inline;">
<img src="image2.jpg" style="display: inline;">...
The closest thing to a standard for JavaScript can be found at
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
For an explaination of why I think this is the standard can be found at
http://www.devguru.com/Technologies/ecmascript/quickref/javascript_intro.html
As...
use javascript. you should look in the javascript forum for a more details but it would be something like
<img src="image1.jpg" id="change">
<a onclick="document.getElementById('change').src='image2.jpg'">image 2</a>
The easiest way to do this would be to use an iframe instead of a div for your maincontent
otherwise you would have to use some kind of script to change the inner html which would probably be quite clumsy.
try putting your script in comment tags, something like
<script>
<!--
your javascript goes here
// -->
</script>
this will make it work in older browsers
I would actually recommend that you put your script in an external js file then provide a link to it. For example create a file called...
This is really a question for the HTML, XHTML & CSS forum.
I am assuming the template is the html file which contains the frameset. You can learn more about HTML frames at w3schools.com
in the frame tag that has your homepage add the attribute
scrolling="no"
Hope this helps
can you try making it work on clicking something something like
<p onclick="window.setInterval(forward(), 5000)">clicking here should work</p>
let me know if it works
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.