| 
	
 | 
 Posted by Chris Ianson on 06/21/15 11:43 
"Neredbojias" <invalid@neredbojias.com> wrote in message  
news:MPG.1e8fb45bfc30b287989862@news.isp.com... 
> With neither quill nor qualm, Chris Ianson quothed: 
> 
>> > Here's a vers. that works with javascript (-except in Opera but the 
>> > original didn't seem to work in Opera, either.) 
>> > 
>> > http://www.neredbojias.com/zyxix/A1master.htm 
>> > 
>> > --  
>> > Neredbojias 
>> > Contrary to popular belief, it is believable. 
>> 
>> PS: Is there a way this can work *across* htm files? 
>> 
>> Let's say 'Go to End' actually says 'Go to End of Image 2', and that  
>> calls a 
>> name reference in a 2nd htm file called A2image.htm with a different 
>> panorama inside. 
>> 
>> When clicked it loads image2.htm into the same iframe, replacing  
>> image1.htm. 
> 
> Uh, yes, I think so.  But the j/s code is in image1.htm so as it is, 
> that would necessitate repeating almost the same code for each 
> imageN.htm (-or making some changes and a .js file.  Probably the better 
> way to do it would be to move the code to the "master.htm" page, but I'm 
> not sure if that is even possible.  ((Um, um, actually, it should be.  I 
> think.)) ) 
 
Hi Neredbojias.  Love the name  ;) 
 
Hmm well I have been trying but I can't get that option to work across  
iframes.  Here is what I have got: 
 
1 master page as per my example. 
2 inline frame htm files > each of which has an image just as my example. 
When you click a hyperlink on the first inline frame htm, it calls a jump  
tag which takes you to a position on the 2nd iframe htm. 
 
Your solution works great within the *one* iframe, but not when jumping to a  
different htm file within that one iframe. 
 
Here's what I've tried: 
 
Placed this after every jump tag: 
 
onClick="gett(this.href);return false;" 
 
Placed this in each of the 2 iframes: 
 
<script type="text/javascript"> 
var pdbst; 
function gett(a) { 
pdbst=parent.document.body.scrollTop; 
location.replace(a); 
setTimeout("parent.scrollTo(0,pdbst)",1); 
} 
</script> 
 
When that didn't work I placed it in the master page, however that caused  
some sort of bug where there was a 15 second delay before it would call  
iframe htm #2, and in the meantime all the graphics stuck if you scrolled up  
and down the master page.  :-S 
 
What would we need to change to get this great idea to work across pages? 
Thanks for your efforts, really appreciated. 
 
Chris :)
 
  
Navigation:
[Reply to this message] 
 |