Category Archives: JavaScript

A quick and dirty JavaScript pop-up

Digging through my stuff I found a simple JavaScript code I’ve used to create Pop-up windows AND allows for you to customize….simple, quick and dirty…

function popUp(doc) { eval("page" + id + " =, '" + id + "', 
toolbar=0,scrollbars=0,location=0, statusbar=1, menubar=0,resizable=1,
width=535,height=800, left = 390,top = 25');"); }

jQuery msaccordion issue with Chrome

When using the msaccordion jquery plugin I had an issue where I needed to specify a unique width for each panel on my vertical accordion menu.

This caused a glitch in Chrome where the accordion transition would work on the first click but clicking any link a second time would cause the content to drop below the panels, at a much narrower width. The transitions would still work but would stay at the bottom of the page. This only happened in Chrome…IE and Firefox worked as they should

I found out the reason was because I was inserting an inline width setting on the content div

Well, Chrome doesn’t like it when you assign a width setting so the site breaks. The simple answer was to remove the width from the content div.

I styled the width by creating an outer div and assigned the width setting to that(on an external stylesheet)