ZwinkyN3ws
New Member
I can successfully run lightbox2 using the code below:\[code\]<!DOCTYPE html><html lang="en-us"><head><meta charset="utf-8"><title>Hello...</title><link href="http://stackoverflow.com/questions/15795952/css/lightbox.css" rel="stylesheet" /><style type="text/css"></style></head><body><a href="http://stackoverflow.com/questions/15795952/images/1.jpg" rel="lightbox[roadtrip]">image #1</a><a href="http://stackoverflow.com/questions/15795952/images/2.jpg" rel="lightbox[roadtrip]">image #2</a><a href="http://stackoverflow.com/questions/15795952/images/3.jpg" rel="lightbox[roadtrip]">image #3</a><script src="http://stackoverflow.com/questions/15795952/js/jquery-1.7.2.min.js"></script><script src="http://stackoverflow.com/questions/15795952/js/lightbox.js"></script></body></html>\[/code\]This works perfectly when I run this directly from my browser, but when i try and run it from within htdocs the links just redirect to the images without activating lightbox. Why would the behaviour of lightbox2 change just because I'm running it from htdocs?