Javascript ImageList & iframes prob....I think?

S

Steve R.

digdug wrote in message ...
need some help with a prob and will do my best to make it clear....

I'm not entirely sure whether this is your answer but you don't have
"quotes" around the names as in

<IFRAME name="content" src="menu.html" width="168" height="400"
frameborder="0"
scrolling="auto">

but you do have quotes around all the other markup.

You just have ...

<IFRAME name=content src=menu.html width=168 height=400 frameborder=0
scrolling=auto>
 
D

digdug

Hi there

need some help with a prob and will do my best to make it clear....

My "hmpage.html" has an "iframe" that calls up diffrent pages using th
nav buttons on the "hmpage.html"

one of those pages It calls up is "gallery.html" & on this page:

I have a table split in 2

1) cell 1 is an iframe
2) cell 2 has a placeholder

in cell2, the iframe calls up "image_list.html"

When you click on the image link, a image shows in "place holder".

My prob is.....it only works in NE/Safari/MoZ/etc.....But NOT i
IE5!!!!....nuts:(

In IE5 when u click on a link in the image list (cell 1, iframe)
image1.jpg shows up in the iframe instead of the place holder.

messed up, I think it's how Im targeting the links, not sure.....min
boggled, need to wk in IE

I know basic concept of "iframes" and I followed a javascipt tutoria
on "image lists", tried to tie the 2 together, but just not quit
there. This is the javascript in the head of:

\"GALLERY.HTML\


<script type="text/javascript" language="javascript">
function showPic (whichpic) {
if (document.getElementById) {
document.getElementById('placeholder').src = whichpic.href;
if (whichpic.title) {
document.getElementById('desc').childNodes[0].nodeValue
whichpic.title;
} else {
document.getElementById('desc').childNodes[0].nodeValue
whichpic.childNodes[0].nodeValue;
}
return false;
} else {
return true;
}
}
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {i
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH
location.reload();
}
MM_reloadPage(true);
//-->
</script>

THIS IS THE IFRAME CODE IN 'GALLERY.HTM

<IFRAME name=content src=menu.html width=168 height=400 frameborder=
scrolling=auto>
</IFRAME></td>


THIS IS THE LINK CODE IN \"MENU.HTML\


<a href="image1.jpg" title="family photo" target="content
onclick="return showPic(this)"><img src="/images/images1.jpg
width="75" height="57" border="0"></a>


thanks:

digdu
 
D

digdug

Steve said:
*digdug wrote in message ...
Hi Steve

Thanks for replying, I added the "" but still no change. In cell
where the place holder is, would I have to change it to anothe
"iframe"?

and would the javascript have to be modified for the placeholde
being in cell 2 "iframe"?

I'm trying to grasp the logic the structure, but just loosing it.




clear....

I'm not entirely sure whether this is your answer but you don't have
"quotes" around the names as in

<IFRAME name="content" src="menu.html" width="168" height="400"
frameborder="0"

but you do have quotes around all the other markup.

You just have ...

<IFRAME name=content src=menu.html width=168 height=40
frameborder=0
scrolling=auto>

digdu
 
M

Mark Parnell


Do you realize that you are not posting to a website forum when you use
this site? They are passing your posts on to the usenet newsgroup
alt.html

alt.html is a publicly available newsgroup. The website you are using is
stealing its content directly from there and pretending that it is their
own. There is no original material at all on the website you are looking
at now. It is all coming directly from usenet.

This web site ruins the threading of the messages - making it very
confusing for us to follow, as your posts are not in the right place in
the thread. Also, because you can see all the previous posts on the
screen, you don't quote the text you are replying to - breaking one of
the foremost conventions on Usenet.

If you are posting from this 'forum' and have included any CSS then be
aware that the software the forum uses will strip any leading dots from
your CSS rules, making them invalid.

If you are reading a usenet post using this 'forum' then be aware that
any javascript examples you may see will have the indented formatting
removed and will be quite hard to read, and not what the author of those
examples intended.

I suggest you obtain a newsreader and visit us at
If you have no access to a newsreader, then try groups.google.com where
they allow you to sign up, post, receive replies, but they don't lie and
claim the content as there own.

People will listen to you if you do. We are all starting to ignore any
post from http://www.forum4designers.com
 
W

Whitecrest

Do you realize that you are not posting to a website forum when you use
this site? They are passing your posts on to the usenet newsgroup
alt.html

Who gives a shit. Some people use a reader, some people use google,
some people use forum4designers.

Stop being a dildo, who cares how someone posts here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top