Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 798393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:57:44+00:00 2026-05-14T22:57:44+00:00

So, I’m trying to replicate MSDN pseudoframes here. Their pages are laid out like

  • 0

So, I’m trying to replicate MSDN “pseudoframes” here. Their pages are laid out like they’re using an old-school frameset, but inspecting their elements with firebug reveals they’ve done this with purely div’s.

Here’s my attempt at it. Its not perfect though, it only works in Chrome and Firefox, it has this weird highlight select behavior that I don’t like, any takers?

<!doctype html>
<html>
<head>
  <title>msdn "pseudoframe"</title>
  <style>
body
{
  background-color: #aaa;
  margin: 0;
  padding: 0;
}

div#pseudoframe, div#main
{
  border: solid 1px black;
  background-color: #fff;
}

div#pseudoframe
{
  position: absolute;
  left: 0;
  width: 180px;
  height: 100%;
  overflow-x: auto;
  overflow-y: none;
}

div#sizeMod
{
  background-color: #a0a;
  position: absolute;
  left: 220px;
  height: 100%;
  cursor: e-resize;
}

div#main
{
  font-weight: bold;
  font-size: 2em;
  padding: 24px;
  margin-left: 224px;
}
  </style>
  <script type="text/javascript">

function initialize()
{
  // get the pseudoframe and attach an event to the mouse flyover.

  var pf = document.getElementById('pseudoframe');
  var main = document.getElementById('main');
  var resize = document.getElementById( 'sizeMod' );

  pf['onmouseover'] = function( event )
  {
    event = event || window.event;
    var el = event.srcElement || event.target ;

    // are we within 5 px of the border?  if we are,
    // change the mouse cursor to resize.
  };

  pf['onscroll'] = function( event )
  {
    event = event || window.event;
    var el = event.srcElement || event.target ;

    var sizeMod = document.getElementById( 'sizeMod' );

    //alert( el.scrollLeft );
    sizeMod.style.right = '-' + (el.scrollLeft) + 'px';
    //alert( sizeMod.style.right );
    // are we within 5 px of the border?  if we are,
    // change the mouse cursor to resize.
  };


  resize['onmousedown'] = function( event )
  {
    event = event || window.event;
    var el = event.srcElement || event.target ;

    window.lockResize = true;
  };

  window['onmouseup'] = function( event )
  {
    event = event || window.event;
    var el = event.srcElement || event.target ;

    window.lockResize = false; //release on any mouse up event
    //alert('unlocked');
  };

  window['onmousemove'] = function( event )
  {
    event = event || window.event;
    var el = event.srcElement || event.target ;

    if( window.lockResize == true )
    {
      // resize.  get client x and y.
      var x = event.clientX;
      var y = event.clientY;

      pf.style.width = x + 'px';
      resize.style.left = x + 'px';
      main.style.marginLeft = x + 'px';
      //alert( pf.style.width );

      event.stopPropagation();
      event.preventDefault();
      return false;
    }
  };
}


  </script>
</head>
<body onload=" initialize(); ">
    <div id="pseudoframe">
      <ul>
     <li>Code</li>
  <li>MICROSOFT CODE
    <ul>
      <li>WINDOWS XP SOURCE</li>
   <li>WINDOWS VISTA SOURCE</li>
   <li>WINDOWS 7 SOURCE</li>
   <li>WINDOWS 8 SOURCE</li>
    </ul>
  </li>
  <li>DOWNLOAD ALL MICROSOFT CODE EVER WRITTEN</li>
  <li>DOWNLOAD ALL MAC OS CODE EVER WRITTEN</li>
  <li>DOWNLOAD ALL AMIGA GAME CONSOLE CODE</li>
  <li>DOWNLOAD ALL CODE EVER WRITTEN PERIOD</li>
   </ul>

    </div>

    <div id="sizeMod">&nbsp;&nbsp;</div>


    <div id="main">
      lorem ipsum microsoft pseudoframe
   lorem ipsum microsoft pseudoframe
   lorem ipsum microsoft pseudoframe
   lorem ipsum microsoft pseudoframe
   lorem ipsum microsoft pseudoframe
   lorem ipsum microsoft pseudoframe
   lorem ipsum microsoft pseudoframe
   lorem ipsum microsoft pseudoframe
   lorem ipsum microsoft pseudoframe
    </div>
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:57:45+00:00Added an answer on May 14, 2026 at 10:57 pm

    If you’re familiar with jQuery, then you could go for this Splitter plugin. You can see a live demo here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I am using Paperclip to handle profile photo uploads in my app. They upload
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.