I was playing around with some code recently and discovered - more or less by accident - that we can include any fully functioning standalone menu by doing the following. The scripts and styles belonging to the external file will be preserved after inclusion: 1. We put this script just before the closing body-tag of the external file: Code: <script type="text/javascript"> try{top.document.getElementById('container_div').innerHTML=document.documentElement.innerHTML} ...
<script type="text/javascript"> try{top.document.getElementById('container_div').innerHTML=document.documentElement.innerHTML}
This week I was asked to look at and offer opinions on a student's website project. Now, its been a while since I was in student-shoes but it brought back memories of the mistakes that I made myself back when I was first learning how to make websites so I thought I'd create my first blog about the easy mistakes and easy fixes that can really help improve loading times. My first observation is with the common development path that a lots of new-starters take when making ...
Updated 04-16-2011 at 09:30 AM by Beverleyh (completing what I started)
The player used on http://www.youtube.com/watch?v=VIDEO_ID is YouTube's version3 player. If you want to use it directly (without the watch?v= part) you can do, for instance: http://www.youtube.com/v/EUSsXdhxFIM?version=3. (You may have to press CTRL if you want this to work in IE). The advantage of the version3-player over other versions is that a click on a playing video doesn't open a new YouTube window containing all sorts of information that you may not be interested in. The click ...
Updated 11-29-2010 at 02:57 PM by molendijk
The Sticky Tooltip script has some room for updating as I've outlined here: Sticky Tooltip script - not sticky and here: Sticky Tooltip script - no dock in IE 7- for image map In those threads I offer piecemeal solutions, the first of which above is the most problematic: Originally Posted by jscheuer1 Even on the demo page, if the tip is in sticky mode and one mouses over one of the other triggers, the tip changes position and content. Also in sticky mode, ...
Updated 12-16-2010 at 05:17 PM by jscheuer1 (add another update)
Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <title></title> ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <title></title>
Updated 06-17-2010 at 09:45 PM by molendijk