SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot t0m|ta's Avatar
    Join Date
    Mar 2002
    Location
    Madrid - Spain
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scripts and tips for Opera

    Being no programmer my self, when I need cool Cross browser effects I usally go to scripts sites, but I find many of this so called cross browser scripts are not working in opera.

    I've seen many separate issues on opera so i thought why not recolect them.

    We may post scripts that do work in opera and may be some guru can tell tell the rest of all how to code for opera.

    So here are the first Two:

    - Fold Out Menu:

    http://www.dhtmlcentral.com/script/script.asp?id=25

    - Drop Down menus:

    http://www.dhtmlcentral.com/projects/coolmenus/?m=31

    If many of us write this could be quite useful!

  2. #2
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is a typical problem within the cross-browser world. Opera just doesn't support many DHTML function. Expecially when dealing with navigating the DOM. The other tough part is browser detection. It can generally trick you detection techniques into believing it is something it is not.

    I found an article the other day. Wait it is in the sitepoint times. About detecting Opera.

    I don't know who wrote this but the only way to detect opera properly is to use navigator.userAgent

    Mozilla/4.0 (compatible; MSIE 5.0; Windows XP) Opera 6.01 [en]

    So in order to find this you must

    if (navigator.userAgent.indexOf('Opera') >= 0)
    {
    alert('You are using an Opera browser.');
    }

    So there thanx to the sitepoint times we have a way to find out if someone is using Opera. Now hopefully Opera will support some of the DHTML code
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  3. #3
    SitePoint Zealot t0m|ta's Avatar
    Join Date
    Mar 2002
    Location
    Madrid - Spain
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm a netscaper myself (that is i've gone back to it since 6.0 realease). I only used Opera to check the pages with it. But from checking to ccheking, I becoming addicted to it.

    So learning to code for opera seems important, because complying standards it's not enough. You can comply and get opera "****ed"

    thanks for your advise

  4. #4
    The Legend Indian's Avatar
    Join Date
    Nov 2001
    Location
    Gods' Own Country
    Posts
    890
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys
    Death --the last sleep? No, it is the final awakening.

    TinyPlanet.org
    Discuss and Debate World Events, Politics and Religion

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2002
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Scripts found at dhtmlcentral might not work on Opera, but I'd guess its because he was unwilling to write in the crude workarounds necessary to code for Opera, not because its not possible. In my opinion crossbrowser dhtml is dead, it never really had any commercial value to begin with, its just not reliable, and to difficult, to time consuming to develop. Besides that you need several PC's running different OS's, and about 20 different browsers - to test on. However the 5th generation browsers does offer some freedom.


    Bty, check out this script site, everything there works on Opera.
    http://www.webpagegadgets.com/


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •