Closed Thread Icon

Preserved Topic: Opera Scrolling Pages that link to <a href="https://ozoneasylum.com/backlink?for=18287" title="Pages that link to Preserved Topic: Opera Scrolling" rel="nofollow" >Preserved Topic: Opera Scrolling\

 
Author Thread
ACharmedOne
Bipolar (III) Inmate

From: USA
Insane since: Apr 2001

posted posted 02-04-2002 23:23

I know that Opera won't support the overflow: auto/none attributes which I use in my site. I was wondering if there was a way to detect opera and if its opera have the element be replaced w/ an IFrame (or something of that variety that would scroll)?
Sorry if this is confusing, I have just started understanding/trying the whole crossbrowser thing and don't know much about Opera.
Thanks
»Cole

------------------------------------------
"I don't think anyone should have to
do anything educational in school if
they don't want to." - Cordelia Chase
------------------------------------------

»What is life w/o Friends?

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 02-05-2002 03:45

Hi Cole! Well, that is one thing that we all would like to see I think, Opera freakin support something

I think that IFrames are out. Opera won't let you use JavaScript along with the iFrame. A real bummer because I have a real nice script that works in everything except Opera. I used to hate NN4.7 but now my hatred has moved to Opera.

I have talked with quite a few people about this that are dHTML and JavaScript Gurus and no one seems to have a way to get an external document to even load in Opera. The only thing that anyone can suggest is using Frames. It would probably mean that you would have to have 2 different sites, one for Opera and one for everything else.

Sorry that I can't help you out more, but that is all that I have to suggest. If you find a way to do something like that, please email me I would love to take a look at it.

Later,
C:\


~Binary is best~

ACharmedOne
Bipolar (III) Inmate

From: USA
Insane since: Apr 2001

posted posted 02-05-2002 03:59

umm I got a script.. but I can't QUITE get it to work. Maybe ya'll can tell me whats wrong...

<script>
if(window.opera) document.write('<iframe src="content.html" class="content">');
else document.write('<span class="content">');
</script>

Content for Span goes Here

<script>
if(window.opera) document.write('</iframe>');
else document.write('</span>');
</script>

it works as if there isn't any iframe in Netscape 6.2 and IE 5.5, but in Opera the iframe loads like it should (sorta it has like this weird black box around it, not sure on that) and for some reason '); else document.write('') appears above the iframe in opera lol maybe that gives ya'll sumthin to play with?

edit: uhh... ok I got it to work sorta by changing the last thing to
<script>if(window.opera) document.write('</iframe>');</script></span>
which probably ain't proper scripting.. or whatever, but it worked so? anyways, there is still a litte ' appearing on part of the page in opera, but its over a black thing so it doesn't show up unless u really highlight everything. Now I just gotta figure out how to load links in the iframe for opera, and do normal links for everything else... Thanks =)
»Cole

[This message has been edited by ACharmedOne (edited 02-05-2002).]

« BackwardsOnwards »

Show Forum Drop Down Menu