html/webpage question

Discussion in 'Bulletin Board ARCHIVE' started by SuperTyke, Jul 16, 2008.

  1. SuperTyke

    SuperTyke Well-Known Member

    Joined:
    Oct 12, 2005
    Messages:
    55,683
    Likes Received:
    29,831
    Trophy Points:
    113
    Style:
    Barnsley (full width)
    Is it possible to insert a bit of code into a webpage (iframe) that will stop you from being able to scroll up and down using the mouse?
     
  2. Gue

    Guest Guest

    was it something like this you was thinking aboyut?
    <iframe src="" scrolling="no" height="296" width="396"></iframe>
     
  3. SuperTyke

    SuperTyke Well-Known Member

    Joined:
    Oct 12, 2005
    Messages:
    55,683
    Likes Received:
    29,831
    Trophy Points:
    113
    Style:
    Barnsley (full width)
    Similar (i think)

    If I've got this right then putting scrolling="no" will stop the scrollbars from appearing but scrolling with the middle button of the mouse will still make the page move up and down. I was hoping there was some code that code be used to stop this like there is that stops you from right clicking.
     
  4. Gue

    Guest Guest

    You'll probably need to enter the world of javascript for that

    tends to get a bit messy...to be honest i would try and refrain from using iframes as well but I'm a bit of a purist when it comes to stuff like that.
     
  5. SuperTyke

    SuperTyke Well-Known Member

    Joined:
    Oct 12, 2005
    Messages:
    55,683
    Likes Received:
    29,831
    Trophy Points:
    113
    Style:
    Barnsley (full width)
    Not really got much choice but to go for an iframe I don't think. The page i'm trying to put the stuff on doesn't allow certain codes so the only way to get it to show is by hosting it in a different page and displaying it on the original in an iframe I think.
     
  6. Gue

    Guest Guest

    if you have flash that could solve it
     
  7. SuperTyke

    SuperTyke Well-Known Member

    Joined:
    Oct 12, 2005
    Messages:
    55,683
    Likes Received:
    29,831
    Trophy Points:
    113
    Style:
    Barnsley (full width)
    No idea what i'm doing with flash to be honest. It looks a little too complicated for little old me lol Thanks anyway :)
     
  8. driver

    driver New Member

    Joined:
    Jul 20, 2005
    Messages:
    1,844
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    RE: Similar (i think)

    You could try putting a style=&quot;overflow:hidden&quot; on the iframe. It would need an explicit height setting though. This would work on a normal html element, but am not sure that iframe would support it. Might be worth a try though.
     
  9. FWF

    FWF New Member

    Joined:
    May 26, 2006
    Messages:
    844
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    <font face="Times New Roman" size="3">You may want to try catching the jscript events and return false on the body tag - e.g.,</font></p>

    <font face="Times New Roman" size="3">&lt;body onselectstart=&quot;return false&quot; ondragstart=&quot;return false&quot; onscroll=&quot;return false&quot;&gt;</font></p>

    <font face="Times New Roman" size="3" /></p>
     

Share This Page