HTML/URL in JTable

This might be a newbie question .
I am trying to create JTable with URLs/links as cells .
Is it possible to do it with JLabel or JEditorPane or both of them?
Can i have JLabel or JEditorPane as the cell contents??
if yes then how it is done .Is there any code sample available to do it .
thanks

You can put anything you like in a JTable cell, but it takes a bit of doing. You might as well learn how JTable operates in general. Check out the Java Tutorial.

Similar Messages

  • Convert ITF-Url to HTML-Url

    Hi,
    Is it possible to convert an ITF-Url (BITMAP 'ENJOY' OBJECT GRAPHICS ID BMAP TYPE BCOL) to a HTML-Url by using the FUBA "CONVERT_ITF_TO_HTML"?
    Thanks!
    Christof

    When I read the comment for this function, it says: "convert internal SAP script format to HTML". It does not talk about URLs, but about HTML content. You can even see that there are exporting parameter for the HTML text (or a table for same HTML text). I can not see anything about an bitmap.
    You can also press that "documentation" button to see a little about the parameters, what they do, and a reference onto an example program.

  • Convert HTML table to JTable

    do you have any way to convert HTML table ( in HTML file) to JTable?
    Thanks in advance.

    Not that I'm aware, and I doubt you'll find built-in support for it any time soon. HTML "tables" and Java "tables" are two very different things. HTML table data is inlined whereas JTables are strictly an MVC design. HTML table data is static whereas JTable data needn't be; the same can be said for the layout, column widths, and column positions.
    It would not be impossible to create a simple parser which read a basic HTML table element and generated a JTable/TableModel based on that information; the amount of work involved would be affected, of course, by the number of HTML table features you'd want to support.
    What precisely motivates you to do this? Are you trying to create a Java web browser?

  • How to open a jasper report (html URL)

    Hello,
    currently we are testing the jasper report engine. We are already able to open such a report from forms by a forms personalization.
    Now we want to run a concurrent report where the output should be a link to a jasper report.
    For example:
    I start the request "open jasper report" with parameter "001". After successful finishing the request should give me a link like "http://jasper/myreport&parameter=001" which will be opened in a new browser tab.
    Well, is it possible to open a URL by using a concurrent request?
    Regards,
    Josef

    Hi Josef;
    Please check
    How to open an URL with PLSQL FUNCTION?
    http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/fnd_utilitiesopen_url-in-forms-personalization-2256431
    http://easyapps.blogspot.com/2008/03/image-file-attachment-in-oracle-apps.html
    http://www.scribd.com/doc/47603/Form-Personalization-for-R12
    Hope it helps
    Regard
    Helios

  • Get current HTML URL into flash with LoadVars and ColdFusion

    I need to get the current page url and pass it into flash.
    I'm also using ColdFusion. Is there an easy solution?

    I gave up on bringing in the URL and parse it into a string,
    there is too much I don't understand. I put in two commands in the
    HTML where the Flash movie is sitting:
    1. <param name="FlashVars" value="airport=sbn"/>
    2. and in <embed src I put in, Flashvars="airport=sbn"
    "airport" is the variable in Flash (it is called as
    "_level0.airport" in the Flash file) and "sbn" is the variable
    definition for 12 of the files. I will just find "sbn" and replace
    it with the new airport name in the next set. It's not very slick,
    but it's better than having to create a new navigation for every
    airport. Thanks for the help.

  • HTML/URL to PDF

    Hello everybody,
    I'm trying to get a module working which should transform HTML code into pdf.
    Unfortunately this is not working. I tried different versions like:
    - iText
    - flyingsourcer (https://xhtmlrenderer.dev.java.net/
    - FOP
    - http://www.allcolor.org/YaHPConverter/
    - http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html?page=3
    Mostly I get an error while parsing the HTML-Code (given by a stream from w URL e.g. http://www.google.com). There is no HTML code that 100% correct in the www.
    Has anyone made such a project? Can anyone pass me a hint how I can get that working?
    I would be pleased for hints that anone has already tested because there are a lot of libs that promise that it should work but it doesn't.
    Best regards,
    nobody

    Hello,
    I've now tested a lot with the concept of http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html?page=1 which typically working like a lot of other things.
    Unfortunately normal pages like http://www.google.com cause errors:
    Tidy (vers 4th August 2000) Parsing "InputStream"
    line 1 column 106 - Warning: <style> lacks "type" attribute
    line 1 column 1.404 - Warning: <script> lacks "type" attribute
    line 3 column 1.100 - Warning: <nobr> is not approved by W3C
    line 3 column 1.171 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.264 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.356 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.447 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.544 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.717 - Warning: missing </nobr> before <div>
    line 3 column 1.729 - Warning: inserting implicit <nobr>
    line 3 column 1.729 - Warning: discarding unexpected <a>
    line 3 column 1.732 - Warning: discarding unexpected </a>
    line 3 column 1.775 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.870 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.965 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.060 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.112 - Warning: missing </nobr> before <div>
    line 3 column 2.126 - Warning: inserting implicit <nobr>
    line 3 column 2.126 - Warning: missing </nobr> before <div>
    line 3 column 2.126 - Warning: trimming empty <nobr>
    line 3 column 2.141 - Warning: inserting implicit <nobr>
    line 3 column 2.141 - Warning: trimming empty <nobr>
    line 3 column 2.141 - Warning: trimming empty <div>
    line 3 column 2.147 - Warning: trimming empty <div>
    line 3 column 2.153 - Warning: inserting implicit <nobr>
    line 3 column 2.153 - Warning: discarding unexpected <a>
    line 3 column 2.156 - Warning: discarding unexpected </a>
    line 3 column 2.198 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.303 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.381 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.470 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.561 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.592 - Warning: missing </nobr> before <div>
    line 3 column 2.606 - Warning: inserting implicit <nobr>
    line 3 column 2.606 - Warning: missing </nobr> before <div>
    line 3 column 2.606 - Warning: trimming empty <nobr>
    line 3 column 2.621 - Warning: inserting implicit <nobr>
    line 3 column 2.621 - Warning: trimming empty <nobr>
    line 3 column 2.621 - Warning: trimming empty <div>
    line 3 column 2.627 - Warning: trimming empty <div>
    line 3 column 2.633 - Warning: inserting implicit <nobr>
    line 3 column 2.633 - Warning: discarding unexpected <a>
    line 3 column 2.636 - Warning: discarding unexpected </a>
    line 3 column 2.731 - Warning: discarding unexpected </nobr>
    line 3 column 2.772 - Warning: trimming empty <div>
    line 3 column 2.807 - Warning: trimming empty <div>
    line 3 column 2.888 - Warning: <nobr> is not approved by W3C
    line 3 column 2.912 - Warning: unescaped & or unknown entity "&pref"
    line 3 column 2.920 - Warning: unescaped & or unknown entity "&pval"
    line 3 column 2.927 - Warning: unescaped & or unknown entity "&q"
    line 3 column 2.979 - Warning: unescaped & or unknown entity "&usg"
    line 3 column 3.111 - Warning: unescaped & or unknown entity "&hl"
    line 3 column 3.285 - Warning: <table> lacks "summary" attribute
    InputStream: Document content looks like HTML proprietary
    53 warnings/errors were found!
    [WARNING] Screen logger not set - Using ConsoleLogger.
    [INFO] setting up fonts
    [ERROR] Unknown enumerated value for property 'text-align-last': relative
    [ERROR] Error in text-align-last property value 'relative': org.apache.fop.fo.expr.PropertyException: No conversion defined
    [ERROR] defaulted font to any,normal,normal
    [ERROR] unknown font sans-serif,normal,bolder so defaulted font to any
    [ERROR] Error while creating area : Error with image URL: \intl\de_de\images\logo.gif (Das System kann den angegebenen Pfad nicht finden) and no base URL is specified
    In that case its not that big problem. Only pictures are not shown in the output pdf.
    Pictures are big problems because there no chance to chance he native into a direct path. So I get errors when I try to convert www.sun.com:
    [ERROR] Error while creating area : Error with image URL: \im\a.gif (Das System kann den angegebenen Pfad nicht finden) and no base URL is specified
    Exception in thread "main" java.lang.NullPointerException
    at java.io.FileOutputStream.write(FileOutputStream.java:247)
    at html2pdf.Html2Pdf.main(Html2Pdf.java:91)
    A big problem also appears when I try to open XHTML URLs like http://en.wikipedia.org/wiki/XHTML.
    As you can read there are a lot of problems. I don't know if the concept of javaworld to convert html to pdf is up to date. Now its not the problem of the syntax of the HTML files. Unfortunately its not a problem that can solved with JTidy or a grphical module which is used in this thread (url from above): http://forums.sun.com/thread.jspa?forumID=31&threadID=5284184 Whith this I don't get any XHTML converted.
    Is there another chance to convert html2pdf ?
    nobody85

  • HTML  URL

    Hi,
    I have a Html page ( has 2 jsps as frames) which is refered as follows: http://hostname/appname/index.html
    now when ever there is change in host name, it is a big overhead to redirect and some times not possible to redirect.
    I would like to know if there is any way we refer the same link as
    http://SomeHostIndependentName/index.html in the intranet.
    running on tomcat 3.x web server

    The following is the piece of info that i used to connect to db and pass the base url to all the jsp pages in my applicaiton.
    Below are the contents of the web.xml that is being used in the Jbuilder/Tomcat4.0.1 environment.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <context-param>
    <param-name>baseurl</param-name>
    <param-value>http://sat:8080</param-value>
    </context-param>
    <context-param>
    <param-name>dbpassword</param-name>
    <param-value>sat123</param-value>
    </context-param>
    <context-param>
    <param-name>dburl</param-name>
    <param-value>jdbc:oracle:thin:@192.168.0.213:1521:satora</param-value>
    </context-param>
    <context-param>
    <param-name>dbuser</param-name>
    <param-value>sat</param-value>
    </context-param>
    </web-app>
    You have to use the following command in the JSP to get the required parameters read from the web.xml file.
    String strBaseUrl = getServletContext().getInitParameter("baseurl");
    Hope this will meet your need.
    Good luck
    sat

  • Open portal page via HTML URL out of the "Dynamic Navigation"

    Hi everybody,
    In our portal environment we have a page (page1) in which user can enter date. On another page (page2) in a different navigation node there is a report that shows the data. We want to provide a possibility to navigate directly from page1 to page2.
    Our idea was to have a KM-document iView  in the "dynamic navigation" of page1 with a link to page2.
    that works fine. but page2 is not opened in the whole window but in the dynamic-navigation-frame.
    the link looks the following:
    <A HREF="http://xxxxxxxx.xxx:1235/irj/portal/index.htm?navigationtarget=roles://portal_content/folder/role/workset/page/">
    Its obvious that the link is opened in the same frame because no target property is added to the href.
    I thought about adding a the "target" property to the  href, but I don't know how the Frame is named.
    I have tried this:
    <A HREF="http://xxxxxxxx.xxx:1235/irj/portal/index.htm?navigationtarget=roles://portal_content/folder/role/workset/page/" target="MainFrame">
    but it didn't work.
    Does anybody know how the MainFrame in the portal is named or has any other solution to my problem.
    Regards, Alex
    Edited by: Alexander Paulus on Nov 20, 2008 4:09 PM

    kind of simple
    user target="_top" to have the page displayed in the whole window.
    Regards, Alex

  • Block / Filter html in email, specifically URLs

    Exchange 2010 in a Windows 2008 R2 domain.
    I'm trying to find a way to block any html url from being link enabled in email. For instance, if I type www.bing.com in an email it link enables it by default and makes it clickable by the recipient.
    I need to either filter the entire url or change it to plain text so it's not link enabled and clickable.
    The endstate here is we're trying to reduce the possibility of a user clicking on a link in a rogue phishing email. At the very least we want the user to have to copy and paste the plain text url into a browser in the hopes that will reduce the phishing
    success.
    Any ideas?

    Hi,
    Based on my knowledge, I'm afraid that we can't block the messages with link from server side. But we can use Outlook to do that. Suspicious message detection is always turned on in Microsoft Outlook.
    For more information, here is an article for your reference.
    Enable or disable links and functionality in phishing email messages
    http://office.microsoft.com/en-us/outlook-help/enable-or-disable-links-and-functionality-in-phishing-e-mail-messages-HA010355585.aspx
    Hope it helps.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Jtable with html in a cell

    Hi,
    Somebody can tell me how can i put a Jlabel with html in a Jtable cell. Is that possible ?
    Tks.

    you need to implement a TreeTableCellRenderer
    and add the renderer to your table.
    check the Java tutorial on table
    forgot the link..so you gotta google the link "java Table tutorial"

  • Static urls (***.html) for Servlets

    How to make static urls for requesting a Servlet. For example: "http://domain/encoded_parametes.html". Without using frames and redirect.

    In your web descriptor file (web.xml) create the mapping to the name you want. For example:
    <servlet>
         <servlet-name>MyHomePage</servlet-name>
         <servlet-class>org.mine.home.HomePage</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>MyHomePage</servlet-name>
         <url-mapping>encoded_parametes.html</url-mapping>
    </servlet-mapping>If your context path is "/application" then if you access:
    http://[server]:[port]/application/encoded_parametes.html
    Then the web container will intercept the request and you will be directed to the servlet instead of a *.html file.
    Anthony

  • While creating pdf from html, the alignment is not proper

    Hi,
    In my application, I am creating a pdf report from html using (using Generate pdf 1.1 - HTML URL To PDF activity) which contains certain images and descriptions.
    But, while generating pdf the alignment is not proper. In the HTML there is no paging, but in the output pdf the image div is getting broken when new pages are generated.
    Some blank areas are coming the report.
    Actually I need an exact replica of the HTML as a pdf, with paging.
    Thank you in advance.

    What is the LiveCycle version?
    Is it possible for you to share an example(somewhere on public file sharing sites)?

  • Inserting Pics in a JTable

    I'd like to include an ID of the person within my table.
    Using DefaultTableModel and ImageIcon, how can I insert a picture?
    Is it even possible to enter a non-textual entry into a JTable?
    Here's what I did:
    JMenuItem insertPicture;
    JTable contactTable;
    DefaultTableModel details;
    else if(ae.getSource() == insertPicture)
      // Column and row details
      int row = contactTable.getSelectedRow();
      int column = contactTable.getSelectedColumn();
      // Using a string to store the picture's location details
      String fileName;
      FileDialog location = new FileDialog(ContactDetails.this,   
                "Choose picture", FileDialog.LOAD);
      // Displaying the FileDialog
      location.show();
      // Getting the image and inserting it in the JTable
      ImageIcon image = new ImageIcon(location.getDirectory()+
      location.getFile());
      details.setValueAt(image, row, column);
    }My problem is that within the row (to which the picture should be placed), I'm getting only the String description of the image's location. How can I correct this?
    Much thanks in advance!
    Reformer!

    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class Test {
        public static void main(String[] args) throws MalformedURLException {
            DefaultTableModel model = new DefaultTableModel(new String[]{"path","image"}, 0) {
                public Class getColumnClass(int columnIndex) {
                    return columnIndex==1? Icon.class : String.class;
                public boolean isCellEditable(int rowIndex, int columnIndex){
                    return false;
            URL[] urls = {
                new URL("http://today.java.net/jag/bio/JagHeadshot-small.jpg"),
                new URL("http://today.java.net/jag/bio/JAG2001small.jpg"),
                new URL("http://blogs.sun.com/roller/resources/jag/2005_09_14_03-44-21-438_n1.small.png")
            for(int i=0; i<urls.length; ++i)
                model.addRow(new Object[]{urls.toString(), new ImageIcon(urls[i])});
    JTable table = new JTable(model);
    table.setRowHeight(240);
    JScrollPane sp = new JScrollPane(table);
    sp.setPreferredSize(new Dimension(600,450));
    final JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(sp);
    f.pack();
    SwingUtilities.invokeLater(new Runnable(){
    public void run() {
    f.setLocationRelativeTo(null);
    f.setVisible(true);

  • URL.openStream() works in Windows but not in Linux

    I am having a problem with this line:
    BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
    in the code sample further below.
    A simple program using this line works when compiled in my Windows XP:
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
    but not when compiled on my RedHat FC 4 server:
    java version "1.4.2"
    gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8)
    The program (making using of a previous froum example and pared down to minimize tangent topics):
    The code works for all 3 URLs in Windows. In Linux it only works for the 1st one (bbc.co site)
    Error is listed below the code:
    import java.net.*;
    import java.io.*;
    public class BBC {
    public static void main(String[] args) throws Exception
    //    URL url = new URL("http://news.bbc.co.uk/sport1/hi/football/eng_prem/6205747.stm");
    //    URL url = new URL("http://www.weatherunderground.com/global/stations/71265.html");
        URL url = new URL("http://www.weatherunderground.com");
        BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
        int nLineCnt = 0;
        String inputLine;
        while ((inputLine = in.readLine()) != null)
            nLineCnt++;
        System.out.println("nLineCnt=" + nLineCnt);
    //--------------------------------------------------------------------------------------------------------------------------------------------Exception in thread "main" java.lang.StringIndexOutOfBoundsException
    at java.lang.String.substring(int, int) (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.Request.readResponse(gnu.java.net.LineInputStream) (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.Request.dispatch() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.HTTPURLConnection.connect() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.HTTPURLConnection.getInputStream() (/usr/lib/libgcj.so.6.0.0)
    at java.net.URL.openStream() (/usr/lib/libgcj.so.6.0.0)
    at BBC.main(java.lang.String[]) (Unknown Source)
    at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
    Can anyone please suggest what I can do to be able to process the weatherunderground URL?
    Claude

    To me it would suggest a bug in the VM that you are using.
    Solutions
    1. Use a different VM
    2. Write your own code to process the http code. Depending on licensing for the VM in use and the VM itself. you might be
    able to find the bug in that code, fix it yourself, and then use your fix (start up command line options for VM.) Otherwise
    you have to duplicate the functionality. You might look to jakarta commons, there might be code there that does that.

  • Creating a Javascript Preloader for my HTML sites... wont work..

    Hey all,
    I am creating a Javascript Preloader for my html site (www.rockspire.com), I have scripted all actions and have come away with a bar that does not load. Can someone please direct me as to where the error may be.
    Thanks in advance!
    Site: www.rockspire.com
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Index</title>
    <script type="text/javascript">
    <!-- begin hiding
    // You may modify the following:
    var locationAfterPreload = "index2.html" // URL of the page after preload finishes
    var lengthOfPreloadBar = 450 // Length of preload bar (in pixels)
    var heightOfPreloadBar = 10 // Height of preload bar (in pixels)
    // Put the URLs of images that you want to preload below (as many as you want)
    var yourImages = new Array(
    "images/lparch1.jpg",
    "images/lparch2.jpg",
    "images/lparch3.jpg",
    "images/lparch4.jpg",
    "images/lparch5.jpg",
    "images/lparch6.jpg",
    "images/lparch7.jpg",
    "images/lparch8.jpg",
    "images/lparch9.jpg",
    "images/lpart1.jpg",
    "images/lpart2.jpg",
    "images/lpart3.jpg",
    "images/lpart4.jpg",
    "images/lpart5.jpg",
    "images/lpart6.jpg",
    "images/lpart7.jpg",
    "images/lpbetty1.jpg",
    "images/lpbetty2.jpg",
    "images/lpbetty3.jpg",
    "images/lpbetty4.jpg",
    "images/lpbetty5.jpg",
    "images/lpnature1.jpg",
    "images/lpnature2.jpg",
    "images/lpnature3.jpg",
    "images/lpnature4.jpg",
    "images/lpnature5.jpg",
    "images/lpnature6.jpg",
    "images/lpnature7.jpg",
    "images/lpnature8.jpg",
    "images/lpnature9.jpg",
    "images/lpnature10.jpg",
    "images/lpnature11.jpg",
    "images/thumbnail_arch1.jpg",
    "images/thumbnail_arch1bw.jpg",
    "images/thumbnail_arch10.jpg",
    "images/thumbnail_arch10bw.jpg",
    "images/thumbnail_arch11.jpg",
    "images/thumbnail_arch11bw.jpg",
    "images/thumbnail_arch2.jpg",
    "images/thumbnail_arch2bw.jpg",
    "images/thumbnail_arch3.jpg",
    "images/thumbnail_arch3bw.jpg",
    "images/thumbnail_arch4.jpg",
    "images/thumbnail_arch4bw.jpg",
    "images/thumbnail_arch5.jpg",
    "images/thumbnail_arch5bw.jpg",
    "images/thumbnail_arch6.jpg",
    "images/thumbnail_arch6bw.jpg",
    "images/thumbnail_arch7.jpg",
    "images/thumbnail_arch7bw.jpg",
    "images/thumbnail_arch8.jpg",
    "images/thumbnail_arch8bw.jpg",
    "images/thumbnail_arch9.jpg",
    "images/thumbnail_arch9bw.jpg",
    "images/thumbnail_art1.jpg",
    "images/thumbnail_art1bw.jpg",
    "images/thumbnail_art2.jpg",
    "images/thumbnail_art2bw.jpg",
    "images/thumbnail_art3.jpg",
    "images/thumbnail_art3bw.jpg",
    "images/thumbnail_art4.jpg",
    "images/thumbnail_art4bw.jpg",
    "images/thumbnail_art5.jpg",
    "images/thumbnail_art5bw.jpg",
    "images/thumbnail_art6.jpg",
    "images/thumbnail_art6bw.jpg",
    "images/thumbnail_art7.jpg",
    "images/thumbnail_art7bw.jpg",
    "images/thumbnail_b1.jpg",
    "images/thumbnail_b1bw.jpg",
    "images/thumbnail_b2.jpg",
    "images/thumbnail_b2bw.jpg",
    "images/thumbnail_b3.jpg",
    "images/thumbnail_b3bw.jpg",
    "images/thumbnail_b4.jpg",
    "images/thumbnail_b4bw.jpg",
    "images/thumbnail_b5.jpg",
    "images/thumbnail_b5bw.jpg",
    "images/thumbnail_nat1.jpg",
    "images/thumbnail_nat1bw.jpg",
    "images/thumbnail_nat2.jpg",
    "images/thumbnail_nat2bw.jpg",
    "images/thumbnail_nat3.jpg",
    "images/thumbnail_nat3bw.jpg",
    "images/thumbnail_nat4.jpg",
    "images/thumbnail_nat4bw.jpg",
    "images/thumbnail_nat5.jpg",
    "images/thumbnail_nat5bw.jpg",
    "images/thumbnail_nat6.jpg",
    "images/thumbnail_nat6bw.jpg",
    "images/thumbnail_nat7.jpg",
    "images/thumbnail_nat7bw.jpg",
    "images/thumbnail_nat8.jpg",
    "images/thumbnail_nat8bw.jpg",
    "images/thumbnail_nat9.jpg",
    "images/thumbnail_nat9bw.jpg",
    "images/thumbnail_nat10.jpg",
    "images/thumbnail_nat10bw.jpg",
    "images/thumbnail_nat11.jpg",
    "images/thumbnail_nat11bw.jpg",
    "images/index_01.jpg",
    "images/index_02.jpg",
    "images/index_04.jpg",
    "images/index_05.jpg",
    "images/index_06.jpg",
    "images/index_13.jpg",
    "images/index_14.jpg",
    "images/overview.pdf",
    "images/Rockspire_Site_Map.pdf",
    "images/Rockspire_slideshow.flv",
    "images/main_concept_image.jpg",
    "images/main_contact_image.jpg",
    "images/main_events_image.jpg",
    "images/main_inspiration_image.jpg",
    "images/main_manifesto_image.jpg",
    "images/main_photos_image.jpg",
    "images/main_resources_image.jpg"
    // Do not modify anything beyond this point!
    if (document.images) {
    var dots = new Array()
    dots[0] = new Image(1,1)
    dots[0].src = "images/black.gif" // default preloadbar color (note: You can substitute it with your image, but it has to be 1x1 size)
    dots[1] = new Image(1,1)
    dots[1].src = "images/red.gif" // color of bar as preloading progresses (same note as above)
    var preImages = new Array(),coverage = Math.floor(lengthOfPreloadBar/yourImages.length),currCount = 0
    var loaded = new Array(),i,covered,timerID
    var leftOverWidth = lengthOfPreloadBar%coverage
    function loadImages() {
    for (i = 0; i < yourImages.length; i++) {
    preImages = new Image()
    preImages.src = yourImages
    for (i = 0; i < preImages.length; i++) {
    loaded = false
    checkLoad()
    function checkLoad() {
    if (currCount == preImages.length) {
    location.replace(locationAfterPreload)
    return
    for (i = 0; i <= preImages.length; i++) {
    if (loaded == false && preImages.complete) {
    loaded = true
    eval("document.img" + currCount + ".src=dots[1].src")
    currCount++
    timerID = setTimeout("checkLoad()",10)
    // end hiding -->
    </script>
    <style type="text/css">
    <!--
    body p {
        color: #333;
    -->
    </style>
    </head>
    <body>
    <div align="center">
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p>
    <script type="text/javascript">
    <!-- begin hiding
    if (document.images) {
    var preloadBar = ''
    for (i = 0; i < yourImages.length-1; i++) {
    preloadBar += '<img src="' + dots[0].src + '" width="' + coverage + '" height="' + heightOfPreloadBar + '" name="img' + i + '" align="absmiddle">'
    preloadBar += '<img src="' + dots[0].src + '" width="' + (leftOverWidth+coverage) + '" height="' + heightOfPreloadBar + '" name="img' + (yourImages.length-1) + '" align="absmiddle">'
    document.write(preloadBar)
    loadImages()
    // end hiding -->
    </script>
    </p>
    <p><font size="2" face="Helvetica Neue">Welcome to Rockspire...</font></p>
    </div>
    </body>
    </html>
    Cheers!

    I see an pdf and flv file in the image list, remove them.
    Rewrite the code of your loading bar into one solid procedure which can be called from image loaded so you end up with three functions:
    loadImage
    imageLoaded
    displayProgressBar
    Maybe it's simpler not to display a progressbar but to display a text like XX loaded from XX images.
    I can't possibly write all the code for you but to adjust the loading bar use the image object instead of html code....
    preloadingImg = new Image();
    preloadingImg.src = "img/dot.jpg"   //whatever your preloader img is
    //To place your loading bar somewhere in the document:
    parentElement.addChildNode(preloadingImg);   //where parentElement is the container of the preloader image ( a DIV tag or whatever)
    //to adjust the width and height
    preloadingImg.height = someHeight + 'px';
    preloadingImg.width = someWidth + 'px'
    Another alternative is indeed use jQuery.

Maybe you are looking for

  • Translate wants to use your confidential information stored in.....?

    I don't know why, but all of a sudden, I keep getting this message from my mail program. I keep saying Deny, but it comes back. I have searched relentlessly and have found no answers. Since the app is called translate, all I keep getting are translat

  • Help! photo booth doesn't work

    There's nothing happen when i click on the photo booth icon on dock. I tried to use my isight another application and it works. So i tried to reinstall it with the DVD. It doesn't work also. anyone know how to resolve this problem? >""<

  • Do I need to have iTunes?

    Do I need to have iTunes to sync music to my iPhone?

  • Starting OBI services

    I recently downloaded & installed the OBI 10.1.3.3.0. When I start the service OC4J it seems to start, but the command window does not go away. Is this normal? When I try to start the presentation service, it does not seem to start. Thanks in advance

  • Queue ID not able to see in SXMB_MONI

    Hi Experts , We are not able to see the Queue ID in SXMB_MONI, pl suggest what could be the reason and how to rectify that rgds mojib Edited by: mohammad mojib ur rahman on Feb 10, 2010 2:39 PM