Adding data to divs with jQuery

I am only beginning to experiment with JS with more depth, and have discovered jQuery has a data function which lets you store data against individual divs. Really useful for some bits and peices! $("#box0").data("uniqueID", 0); $("#box1").data("uniqueID", 1); Then to call it, $("#box0").click(function() { alert($(this).data("uniqueID")); I'll find out how to loop that through a set... Continue Reading →

Value from previous sheet in Excel

I changed this to not give an error if it finds nothing, but to produce 0. Used for accumulating overtime, so very important you see. Function PrevSheet(Range As Range) Application.Volatile PrevSheet = Application.Caller.Parent.Index If PrevSheet = 1 Then PrevSheet = 0 ElseIf Sheets(PrevSheet - 1).Type <> -4167 Then PrevSheet = CVErr(xlErrNA) Else PrevSheet = Sheets(PrevSheet... Continue Reading →

Captivate Variables

You can print a variable by putting $$'s around it in a caption. $$cpInfoPercentage$$ List of variables and what they do (ty!): http://www.cpguru.com/adobe-captivate-5-system-variables/

Batch Conversions

Yoinked this from eHow. http://www.ehow.com/how_5150630_batch-change-file-extensions.html Totally handy, for example for renaming stupid panasonic .MOD files to .mpeg for video editing. 1 Move the files you want to augment into the same folder or directory. All these files need to have the same extension. 2 Open the Notepad program and type the command line ren *.123... Continue Reading →

Make a whole DIV a link the easy way with Jquery

<script type="text/javascript" src="jquery/jquery-1.7.1.min.js"></script> <script type="text/javascript"> function init() { $(".simBox").click(function(){ window.location=$(this).find("a").attr("href"); window.open($(this).find("a").attr("href")); return false; }); $(".simBox").mouseover(function(){ $(this).addClass("simBoxOver"); }); $(".simBox").mouseout(function() { $(this).removeClass().addClass("simBox"); }); } $(document).ready(function() { init(); }); </script> </head> <body> How do I...<br><br> <div class="simBox"><a href="about:blank">Enrol in elearning?</a></div> Src: http://css-tricks.com/snippets/jquery/make-entire-div-clickable/

Rescale Module Wrapper

This is a pretty handy wee class, for if you make something you want to scale down, but not scale up when the screen size is bigger. So all you need to do is wrap your module into a .swf built off this class, and in the HTML set the width/height of the flash box... Continue Reading →

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑