Jump to content

Jonas

Members
  • Posts

    2,402
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jonas

  1. Looks great now. :)Overflow-y: scroll; is pretty much the same as overflow: auto; anyway. Overflow: auto; will only give you scrollbars if they're needed, and will break the content to fit horizontally if possible. Overflow: scroll; will give you both a vertical and horizontal scrollbar. I think there's a possibility that Opera won't work with overflow-y without an overflow-x property as well, and overflow sets them both.When in doubt, use overflow: auto; is what I say.
  2. Opera does support overflow. Try overflow:auto; instead of scroll, see what happens then.
  3. Still breaks a little...http://home.no.net/jonvel/forum/screen.PNGSomething wrong with the height/width apparently. Other than that it looks ok.
  4. Uhm, I liked it better the way it was before. After you added the navigation to your site and changed the colour scheme, it breaks hideously in Opera.
  5. Please, no advertising. Especially not in a thread where it's off-topic in addition.
  6. This issue has since been fixed, but yeah, please create a thread in the General forum in the future if something is wrong with the main site. Easier to spot for the mods as well. ;) Thanks. :)

  7. Weird, for some reason it just works on forums.starwars.com, and not on other starwars.com sites... :|
  8. Awesome, that worked, thanks.
  9. Hmm, I tried applying the javascript to a spesific site (through "Manage site preferences..."). After I applied it to general user javascript it worked, however now it removes the first table on every page I visit, which means that I need a way for the script to filter sites. I'm thinking along the lines offunction hideAd(){ var tables = document.getElementsByTagName("table"); if (window.location.search(/starwars.com/) >= 1) { tables[0].style.display=none; }}window.onload = hideAd; or function hideAd(){ var tables = document.getElementsByTagName("table"); if (location.href.search(/starwars.com/) >= 1) { tables[0].style.display=none; }}window.onload = hideAd; Although that doesn't work. Isn't that the correct way to search for a string within another string?
  10. that window.onload thing didn't work either. I'm beginning to doubt if Opera's ability to add your own js really works. Anyway, I'll move this to the Javascript forum, since there doesn't seem to be a CSS solution.
  11. Jonas

    TOP TIPS

    Justsomeguy has already volunteered and gotten responsibility for a PHP Tips topic. If you want to collaborate of course, I'm sure you can PM him.
  12. It's not supposed to be a help site. In fact, to make a design like that on your own it requires intimate knowledge of CSS 1.0 and 2.1, quirks and all. The point of the site is to show people just how powerful CSS really is. You could never have done that simply with html. Ok, maybe you could, but the code would be bloated as ######...
  13. I don't have control over any content on the actual site, only what I can manipulate through Opera (javascript/css overriding, custom js file/stylesheet). That last script you gave me I suppose should work, but doesn't. I'm not an expert or anything, but do you perhaps have to make tables an array or something first?var tables = new Array()or something like that?
  14. Hmm. I can still just block ad.doubleclick.net/* through Opera's Blocked Content function. However, I also want to get rid of the black bar the ads are displayed on. See here, and you'll understand:http://forums.starwars.com/That black 108 px high bar at the top.
  15. Sorry, what? Does this require server access? Because I don't have that.
  16. Anyone know how to do that in javascript?
  17. It's one of the differences between HTML and XHTML (eXtensible HyperText Markup Language). XHTML is a reformulation of HTML into XML. XML requires "well-formed" documents, that means all tags should be closed, elements should be properly nested (<b><i>text</i></b> as opposed to <b><i>text</b></i>). One of the advantages of this is that you're able to extract elements from the documents and use them in other XML languages. Read more here:http://www.w3schools.com/xhtml/default.aspMain differences between HTML and XHTMLhttp://www.w3schools.com/xhtml/xhtml_html.aspIt's not really difficult going from HTML to XHTML, especially if you picked up good coding habits when learning HTML.
  18. Tried this: var ad = document.getElementsByTagName("table");if (ad.border="0" && ad.cellpadding="0" && ad.cellspacing="0" && ad.width="100%" && ad.height="108") { ad.style.display="none";}; Didn't work.Perhaps make an array of all the table elements in the source and then hide the first one? Although I wouldn't know how to do that...
  19. You can customize it however you want. Tools -> Preferences -> Advanced -> Content -> Manage Site Preferences -> Add... -> site adress -> Display (for custom CSS file)/Scripting (for custom JS file).Example of code: <table border="0" cellpadding="0" cellspacing="0" width="100%" height="108"> <tr> <td align="center" valign="middle" width="100%" height="108" bgcolor="#000000"> <table border="0" cellpadding="0" cellspacing="0" width="974" height="108" align="center"> <td align="left" valign="middle" height="108" width="728"> <script LANGUAGE="JavaScript"> headAd = true; document.write('<script LANGUAGE="JavaScript1.1" SRC="http://ad.doubleclick.net/adj/swlucas.forums/;dcopt=ist;pos=top;tile=1;sz=728x90;ord=' + ord + '?" ><\/SCRIPT>'); </script> <NOSCRIPT> <A HREF="http://ad.doubleclick.net/jump/swlucas.forums/;pos=top;tile=1;sz=728x90;ord=123456789?" TARGET="_blank"> <IMG SRC="http://ad.doubleclick.net/ad/swlucas.forums/;pos=top;tile=1;sz=728x90;ord=123456789?" WIDTH="728" HEIGHT="90" BORDER="0" ALT=""></A> </NOSCRIPT> </td> <td><img src="/images/clear.gif" width="172" height="1" /></td> </table> </td> </tr> <tr> <td><img src="/images/clear.gif" width="1" height="18" /></td> </tr> </table> Now, the table element I want to get rid of (the one above) is the first table element in the body element, however it is NOT the first element, so I believe the table:first-child pseudo-class is out the window, unless someone knows something I don't.Anyone get any ideas from this site:http://www.w3.org/TR/CSS21/selector.html?If not, looking into javascript would probably not be a bad idea either. Is it possible to check for all those things (border="0" cellpadding="0" cellspacing="0" width="100%" height="108") and then hide the table element based on that?
  20. I don't have control of the page. It's a forum I often visit that have ads. Before it was possible to pay for full membership and get rid of ads. Now they took that out of the membership privileges, so I need another way to get rid of them.
  21. EDIT: MOVED to Javascript forum after being steered towards javascript eventually.Anyone know if it's possible to use more than one attribute selector in CSS?Like, say, there's this website that displays ads, and I want to get rid of the ads through adding a custom stylesheet for that site in Opera. Now, this element doesn't have a unique ID or Class (actually none at all), and selecting based on just one attribute will change other things on the site too, things that I can't miss (this is a forum I'm talking about). Some other elements share some but not all attributes of the one I want to hide. Here's the element I want to get rid of by using display: none;<table border="0" cellpadding="0" cellspacing="0" width="100%" height="108">So, is that possible to get rid of?
  22. Jonas

    TOP TIPS

    No, no, thank you.
  23. Jonas

    TOP TIPS

    That link doesn't work. You probably mean this:http://w3schools.invisionzone.com/index.php?showtopic=12367Seems allright with me. You want to keep it updated with recurring topics, it's yours. Let me know, and I'll split it so that yours is the first post.
  24. Are you saying that the page is sending two different encodings? Tried changing the <meta> element?
×
×
  • Create New...