I'm building a client site with somewhat complicated geometry, and I've 
hit a snag. Here's the situation.

I've created a table consisting of a sliced up image, and I've done it 
in such a way that the image resizes when the window is resized. I 
calculate the exact dimension of every image slice, based on the window 
size, and I write the table out inside a javascript function. Then I 
call the function. That part works fine.

Now I want to position some graphic rollover buttons in front of the 
table. I can calculate the positions and sizes of the buttons easily 
enough. What I can't figure out is how to pass that information to the 
browser.

Here's a starting point for discussion:

<a href="index.html?p=2" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image15','','images/button2-services-rollover.gif',1)">
<img src="images/button2-services-unselected.gif" alt="services offered" 
name="Image15" width="89" height="70" border="0" id="Image15" 
style="position:absolute; left:513px; top:711px;" /></a>


Now I want to be able to write that out with newly calculated width, 
height, left, and top measurements, but I can't figure out how. For 
example, I can use the document.write function successfully within the 
img tag if I do this:

document.write (' name="Image15" width="89" height="70" border="0" 
id="Image15"')

but if I break the string up like this:

.... document.write ('width="' + imagewidth.toString() + '" height="' + 
imageheight.toString() + '"') ...

the page breaks and the button doesn't display.

So I'm scratching my head and would appreciate any insight.

Thanks,

Dick




______________________________________________

Author Help files and create printed documentation with Doc-To-Help.
New release adds Team Authoring Support, enhanced Web-based help
technology and PDF output. Learn more at www.doctohelp.com/tcp.


Interactive 3D Documentation
Parts catalogs, animated instructions, and more. www.i3deverywhere.com
_______________________________________________

Technical Communication Professionals

Post a message to the list: email [EMAIL PROTECTED]

Subscribe, unsubscribe, archives, account options, list info: 
http://techcommpros.com/mailman/listinfo/tcp_techcommpros.com
Subscribe (email): send a blank message to [EMAIL PROTECTED]
Unsubscribe (email): send a blank message to [EMAIL PROTECTED]

Need help? Contact [EMAIL PROTECTED]

Get the TCP whole experience! http://www.techcommpros.com

Reply via email to