Click to See Complete Forum and Search --> : Check this please.


rangerstrider9
02-16-2003, 01:04 PM
Could somebody check the code on my webpage. The function I'm trying to get to work is "display_im" and I just can't seem to figure it out. I'm not very good at this if you can't tell.
My homepage (http://garnet.acns.fsu.edu/~ebm5018)

rellik
02-16-2003, 01:14 PM
why don't you just put

document.write("<img src='http://www.tealsound.org/pics/2ndtour/DCP09574.JPG' width='200px'")

where you want the image instead of using a function?

rangerstrider9
02-16-2003, 04:32 PM
I know that would be easier but it's part of the assignment for my class. This thing is kickin' my ass because I don't know much about javascript. This is the link for the assignment.
Homework5 (http://www.cs.fsu.edu/~desmedt/course/intro/homework5)

khalidali63
02-16-2003, 04:48 PM
Though there may be better ways for doing this.
Since its your assignment and your code is correct with only one minor error

document.write("<img src=\""+url+"\" "width=\""+width+"\">");

you have one &quot; too many

document.write("<img src=\""+url+"\" width=\""+width+"\">");

This should do it.

Cheers

Khalid