?
Solved

How cna I make a lightbox display onload?

Posted on 2009-05-06
2
Medium Priority
?
1,495 Views
Last Modified: 2012-05-06
I have tried to do this in the past and have never had luck.  There are lots of lightbox scripts out there on the web.  They all do a wonderful job of opening an image when a link is clicked.  I've never been able to make one do it onload.  

<body onload="display_the_image_in_a_lightbox_fashion">

I don't have any code to share at the moment.  I'm just throwing this out there to see if anyone has a lightbox-style thing that will display an image onload.  It would be an awesome help.
0
Comment
Question by:mrcoulson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Author Comment

by:mrcoulson
ID: 24316490
Here we go.

http://www.co.frederick.va.us/gis/default_WORKING.aspx

Click the ### at the top.  What if I want to make the image load as a lightbox without having to click the ### at the top?
<!-- From the <body> tag to the lightbox link: -->
 
<body>
<form id="gisForm" runat="server">
  <div id="contentDiv">
    <!-- #INCLUDE FILE="/includes/small_masthead.asp" -->
    <div id="leftNavBox-contentPages">
		<!-- #INCLUDE FILE="/gis/includes/gisMenus.asp" -->
	</div>
    <img src="/dry_dock/images/seal-lines.jpg" border="0" style="position:absolute;bottom:2px;z-index:500;" />
	<div id="textHolder">
    <a rel="lightbox-myGroup" href="images/offline.gif" title=" " >###</a>

Open in new window

0
 

Accepted Solution

by:
mrcoulson earned 0 total points
ID: 24317772
Almost too easy.
<script type="text/javascript" language="javascript">
<!--
  $(document).ready(function(){
    $("#offlineAlert").click();
  });
//-->
</script>

Open in new window

0

Featured Post

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question