View Full Version : external image maps?
Tails
03-12-2003, 08:16 PM
Can image maps be external? I tried to make an external file called maps.map containing something like this:
<map name="square">
<area shape="rect" coords="0,0, 0,40, 40,40, 40,0, 0,0" />
</map>
and then in a file load it like this:
<img src="sq.gif" usemap="maps.map#square" />
and it does not work. Is there a similar feature that I should know about that will work equally well? I'm trying to make a large page load up only sections that it needs when it needs it.
Tails
03-13-2003, 10:57 PM
::useless reply to refresh an ignored question::
joh6nn
03-13-2003, 11:56 PM
i'm pretty sure that's not possible
Tails
03-14-2003, 12:04 AM
I can put document.write into external script files. Is it possible to load a script file upon an IF statement? To save loading times and load only what's needed? you can't do document.write('<script src="blah.js">') with the script tag. Someone once said something about document.createElement but that didn't work. It wasn't recognized in IE 5.0 and I found no documentation on it, was probably a fake.
Tails
03-14-2003, 07:49 PM
Ok, that was on topic, but should have probably been posted in the javascript forum instead.
joh6nn
03-15-2003, 09:40 PM
you could do that, sure. it's not that you can't doc.write() a script include; it's just that it's a bit tricky. the first </script> tag the browser finds, is where it stops parsing javascript, even if the tag is in quotes and all. there are ways around that, though.
the thing is, trying to make only certain sections of a page load at certain times, could be difficult. you can't use doc.write() after the page has loaded; your best bet for that is innerHTML. if you're trying to determine which parts of a page get loaded based on variables in the url, that'd be easier. although that could result in some lengthy urls.
what're the specifics of what you're looking to do?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.