Solved

How cna I make a lightbox display onload?

Posted on 2009-05-06
2
1,490 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jQuery dialog box help 2 17
Asp in server side with Mssql Server 7 4 27
Running a javascript project in WebStorm 2 25
JQuery Syntax... 4 33
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

856 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