Hi,
the wysiwyg-editor changes the source, thats right.
What can You do?
Insert Your code in a code2-section. Get the
code2-module, install it, add a section type code2 to Your page, set it to html and insert any html-code You want.
regards from Himberg, next to Vienna
But - if I see this right - it doesn´t make any difference to the code - just the order of appearance. It doesn´t matter. If it´s not working it´s maybe because You missed something? Did You put the call for the Lightbox in the index.php of Your tempalte in the proper way?