Alright, I racked my brain all last night and can't figure out what I'm doing wrong. I've copied:
[html]
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.j s?load=effects, builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
[/html]
in my header, as well as move the files into my js folder and placed at my root.
I also copied:
[html]
<link rel="stylesheet " href="css/lightbox.css" type="text/css" media="screen" />
[/html]
and placed alongside my css in my html - above header, but also tried in header to see if it made a difference and it didn't. I as well, copied the css into the css folder and placed in root directory.
I then, placed at the image:
[html]
<a href="img/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
[/html]
Now, I had the link with the source file as:
[html]
<a href="img/2008/nov/photos/Billy_Mays.jpg" rel="lightbox" title="Billy Mays"><img src="/img/2008/nov/photos/Billy_Mays.jpg" alt="Billy Mays" width="100" height="100" hspace="5" border="0"></a>
[/html]
also tried after to see if that would help and it didnt. So I'm thinking it's an interference, and while I do have a:
[html]
<body onLoad="goforit ()>
[/html]
I linked them together with:
[html]
<body onLoad="goforit ();initLightbox ()">
[/html]
but still haven't gotten it to work - all it does is link to the actual image file on my root. I know this has to be a noobie question and I'm screwing up somewhere, I just can't figure it out. I spent all night trying variations that I thought could be making the difference.
Any help is always appreciated, you guys are awesome!
8 2261 acoder 16,027
Recognized Expert Moderator MVP
I believe it runs my html form script. I have racked my brain again another night. Matching up scripts from sample sites and everything looks right. I copied the html and images and created the page and the lightbox works right, so it must only be a script interference.
I tried even taking out the body onload goforit () and just using the applied onload script and even just the <body> tags, but nothing worked. If you go onto www.thelampoonjournal.com is the page i'm trying to run it on with the photos at the bottom of the page. I took out the lightbox links because it just opens up in a new page - /img/2008/nov/XXX.jpg is the new page that opens up, but the rest of the links are still in there, so all I would need to do is adjust the linked pictures to match rel=lightbox.
If you could check out that coding if you get the chance and see maybe a conflict, I would greatly appreciate it. As you can probably see, the picture javascript picture viewer I am using currently isn't nearly as aesthetically nice.
Again, I really appreciate the help. I know you're helping with my legwork, I just can't find the interference! Thanks again.
acoder 16,027
Recognized Expert Moderator MVP
I notice you're using jQuery and Lightbox is based on prototype and scriptaculous. Sure, you can get two libraries to mix and jQuery does allow you to do it, but I would suggest that you use only one library to save yourself the headache. Either look for a lightbox clone in jQuery or one that's not dependent on a library.
ahh...is that what is causing the interference? The jquery is running a rich html text scroller. Is there a javascript code to utilize scriptaculous in a text scroller or should i just look for a lightbox in jquery? I didn't think that would be what would cause the intereference. Thanks!
acoder 16,027
Recognized Expert Moderator MVP
Well, I'm not certain that that is the cause, but it could definitely be a possible cause - basically, one of the first things you'd look for.
Go with whichever library you're more comfortable with, or are you only using one because the script that you've included uses it?
I don't really have a preference, I was merely going for the functionality of the script. Like Lightbox, the code for the rich text was a borrowed code that provided the desired results I was looking for.
I'll try that out tonight and report back if that works. Hopefully that is the answer. I have a number of tracking scripts on there but can't see how those would interfere. Is there anything in particular I should look for? Again, I'm kind of a newbie in the implementation of multiple functions.
Wanted to let you know that removing the jquery script worked. Thank you for your help. It removed the scroller, but I'll look for something compatible with this script.
acoder 16,027
Recognized Expert Moderator MVP
No problem. For a Prototype/scriptaculous scroller, just search for "prototype scroller". You'll probably find something you can use.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: NoWhereMan |
last post by:
Hi everybody,
first of all, let me say I'm not really a javascript (more a php) guy.
Now, I'm trying to integrate lightbox V1 into my project
http://flatpress.sf.net
I chose V1 because it doesn't use prototype, so it's lighter.
Well, I see LBv1 in IE displays the infamous 'active content blocked'
|
by: bordagen |
last post by:
Hi all,
Is it possible to print the current active image only using Lightbox,
without printing the rest of the page content?
Cheers
|
by: Bouzy |
last post by:
I have been trying to put lightbox on my site I am making, but its not working. I have searched on forums and can't find exactly the same problem. When I click on my thumnail to open it abosolutly nothing happens. It just says done in my loading bar on firefox.. I think I have everything required to do it. I have the tag in the head I have a...
|
by: daniel |
last post by:
Hello, I have limited understanding of js (css/html is more me) and
when I run into complicated problems I am left undone. The person I
normally call upon is on holiday so I was wondering if I could present
it here for an answer.
The page in question is http://www.sunraycomfort.com.au/p-inslab.html
(and will be applied to all other product...
|
by: metaphysics |
last post by:
I'm attempting to create a slideshow with similar functionality as Lightbox 2.
I don't want anything to pop up like the Lightbox does, I just want the slideshow to have next/previous buttons (like in the Image Set example). Keeping the animation between transitions would be preferable, but it's not necessary. Can anyone help me?
| |
by: FFMG |
last post by:
Hi,
I want to add a link around images to add the lighbox JS.
(http://www.huddletogether.com/projects/lightbox/)
I need to look for <img ... /and wrap a <a href=... around it.
But the regex is a bit out of my depth here.
1- How do I know the link of the image, (because I need it for the
anchor)
|
by: truezplaya |
last post by:
Hey
I am currently creating a mash up that displays the location of some football grounds using a geoRSS feed.
I was hoping to add lightbox to my mash up so i can display photos.
The trouble i am having is putting the links in to the markers has anyone got any ideas. At first i thought it would be a straight forward but now i think i...
|
by: jrod11 |
last post by:
I recently found a gallery (http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6727&lngWId=4). The image in the gallery when clicked on will open the larger image in the same window. I want to replace it with light box. I have added the lightbox javascript, but I'm no sure where to place the light box call.
To call the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |