its not using the lightbox effect, i did everything exactly as it asked, but i didn't change any of the directories, mostly because i dont know what to change them to!, PlEASE HELP ASAP![]()
![]()
![]()
![]()
its not using the lightbox effect, i did everything exactly as it asked, but i didn't change any of the directories, mostly because i dont know what to change them to!, PlEASE HELP ASAP![]()
![]()
![]()
![]()
Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
Do you have a URL to the problem page on your site?
http://www.dynamicdrive.com/dynamici...tbox/index.htm
thats the script, and the page that im putting the pictures on is,
http://www.merciless-gods.com/pics.htm
There's no lightbox script on your demo page. Also, I notice that it has a preloading function onload in the body tag, this could potentially conflict with the lightbox's script's onload event.
To really see the problem(s) you are encountering, we need to see your best attempt at using the lightbox script. It needn't be the live page on your site, it could just be an orphan test page on your site that you could give us the URL to. Please make every effort to have links from the script on such a page to images be valid though.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Eeek and the background music really made me jump.
Like John said, the Lightbox script doesn't even seem to be on that page, plus you have several other scripts on the page that are recipe for a script conflict. Try installing Lightbox on a clean page to at least make sure you know you got the basic installation procedure down.
While we are on that subject, just in general, this:Originally Posted by ddadmin
in lightbox.js really should be replaced by:Code:// // addLoadEvent() // Adds event to window.onload without overwriting currently assigned onload functions. // Function found at Simon Willison's weblog - http://simon.incutio.com/ // function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function'){ window.onload = func; } else { window.onload = function(){ oldonload(); func(); } } } addLoadEvent(initLightbox); // run initLightbox onLoad
That way it will not as likely be overwritten by any conventional onload events.Code:if ( typeof window.addEventListener != "undefined" ) window.addEventListener( "load", initLightbox, false ); else if ( typeof window.attachEvent != "undefined" ) window.attachEvent( "onload", initLightbox ); else { if ( window.onload != null ) { var oldOnload = window.onload; window.onload = function ( e ) { oldOnload( e ); initLightbox(); }; } else window.onload = initLightbox; }
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
okay i put an example of the little thumbnails that open a whole nother web page basically, and they dont use the lightbox loading bar greyish look or anything, here is the link, http://www.merciless-gods.com/pics.htm , thats what i have so farplz help, ps. i changed that text in the lightbox.js file now,
AND I HAVE TWO MORE IMPORTANT QUESTIONS TO ASK:
1. people have been telling me the text on my web page looks diffrent than theirs, which means that they dont have that text on their internet browser, if you view my page and you see that, could you tell me a good universal text i could use that looks like courrier new or something,
2. do you really really smart guys know how to put "forms" onto your web page, like the little things where it has a question "what is your name? [ ]" and a little text box that they put text into and when they fill in all the text it will email it to me, that would help me a lot for my clan join page, thanks , you guys rock, as usual...
when i view the page in "preview" mode in dreamweaver the overlay and X button work everything works perfect except for the loading bar, but on the internet nothing works at all,i dont understand why...
Last edited by Merciless; 02-15-2006 at 09:15 PM.
This display of the loading image is only for folks that do not have the images in their cache yet. It gives them something to look at while the image loads. At least in FF, the loading image does display as long as the larger image isn't already in the browser's cache. Since, all the larger images are still on your test page, the only way to achieve this is to empty the cache after the page loads. Once I did that the loading image displayed as expected. I just checked in IE6 and the same thing is true there. Take the large images off of the page and, as long as you don't preload them in any other way and they're no longer in your browser's cache, the loading image will display as expected.
But, only the first time, after that the image will once again be in the cache.
Last edited by jscheuer1; 02-15-2006 at 09:31 PM.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks