How to do this in java?????

hi,
I want to read some unique ID for the PC I'm running my code on
I mean I could always do it in a native way (read the serial of the HDD or something like that)
but I 'd love to do it in java
is there is a way to do it in 100% pure java?????
duke

Unless you've an external program you can exec(), and catch the output.
Eg. in Windows you could run "vol" to get the disk volume id & serial number.
regards,
Owen

Similar Messages

  • How to program this in java? Please help

    How to program this in java?
    please explain steps, it has to come out like this:
    example
    input: 3b1w3b
    output:
    BBBWBBB

    import java.io.*;
    public class Test {
    static java.io.PrintStream o = java.lang.System.out;
    public static void main(String[] args)throws Exception {      
         BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
         System.out.print("Enter plot for printing: ");
         String s = BR.readLine();
         char[] cs = s.toLowerCase().toCharArray();
         for(int i=0, j=0; i < cs.length-0x1; i+=0x2, j=0)
              while(j++ < (int)(cs[i]-0x30))
                   o.print((char)(cs[i+0x1]-0x20));
    I tried changeing it to this so I can enter my own string, but I want to change it some more so that it can enter multiple input separated by space, so that it can form a sort of picture line by line. I tried using tolkenizer but I get errors. I dont know how to use tolkenizer properly can anyone please TEACH. you dont have to tell how or give me the code if you dont want to. yes I know Im a noob and I dont know java as good as everyone here, If everyone thinks I don't deserve help then DON'T help, I'm just trying to learn programming

  • How to solve this error java.util.MissingResourceException

    Hi Friends,
    I had developed one web dynpro application by using  Internationalization - I18N of WebDynPro (Java)  Application (Blog)   but I got one error that is
    <b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b> 
    Actually i created two properties file
    1. lang_en.properties
    2. lang_ta.properties
    I stored this two properties file in this package com.sap.example.language
    and this my code in DOInit()
    sessionLocale =  WDClientUser.getCurrentUser().getLocale();
    resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);
         catch (WDUMException e)
         e.printStackTrace();
         wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));
         wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));
    How to solve this error?
    Guide me.
    Advance Thanks,
    Balaji

    Hi Friends,
    I had developed one web dynpro application by using Internationalization - I18N of WebDynPro -Java Application (Blog) but I got one error that is
    <b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b>
    Actually i created two properties file
    1. lang_en.properties
    2. lang_ta.properties
    I stored this two properties file in this package com.sap.example.language
    and this my code in DOInit()
    sessionLocale = WDClientUser.getCurrentUser().getLocale();
    resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);
    catch (WDUMException e)
    e.printStackTrace();
    wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));
    wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));
    How to solve this error?
    Guide me.
    Advance Thanks,
    Balaji

  • How to solve this ERROR  --java.lang.OutOfMemoryError: Java heap space

    I am Trying to read one TEXT file line by line. file size is approx. 7 MB or it contain approx. 35000 line of text.
    i am processing that file and export data into another file.
    mean while after some line i get error like below,
    java.lang.OutOfMemoryError: Java heap space
    After this error process stop.
    my application is in Java Swing and i m using java 1.5 version of SDK and JRE.
    is it a JDK version Problem?
    please can any one give me appropriate solutions for this.
    give me answer please.............

    Are you able to post the code you use to read the file? Initially, I'd guess that you're stuck in a loop. Make sure you're getting out of all your loops. You can do this with breakpoints in your IDE's debugger, or by putting a println right after the loop.
    It may also be that your IDE isn't allotted enough of your system's memory, though I doubt that is the case. You can easily google how to increase the memory allotted to the IDE.
    For some reason, garbage collection isn't happening as you're expecting. Make sure you're not holding on to huge stuff any longer than you need to.
    Edited by: Caryy on Aug 14, 2010 5:57 PM

  • HOw to do this with JAVA

    http://aycu29.webshots.com/image/37828/2005173359849159001_fs.jpg
    Hi! I am new in java ,How can i build some thing like that in above?
    Edited by: mjava on Dec 4, 2007 7:26 PM

    If you do want TCP packet sniffing, I'm afraid Java networking API doesn't support such low-level. The GUI should be easier though.

  • How to solve this? java.lang.IllegalArgumentException problem

    The midlet compliled successfully..
    Once run,
    I enter 3 different records...
    then after when I 'VIEW' for example I enter recordID: 1..
    by right, all the details about recordId : 1 would be listed out...somehow, this error pops up.
    java.lang.IllegalArgumentException
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.rms.*;
    * @author RyanLCC
    public class cdSeller extends MIDlet implements CommandListener{
    private Display display;
    private Form form;
    private Command add, view, update, delete, exit;
    private TextField rcdId, title, quantity, price, profit, director, publish, actors;
    private RecordStore rs;
    private Alert alert = new Alert("New Data Added !!!");
    private Alert alert1 = new Alert("Database Upated!!!");
    private Alert alert2 = new Alert("Record Deleted!!!");
    private Alert alert3 = new Alert("Looking Data!!!");
    public cdSeller()throws RecordStoreException{
    display = Display.getDisplay(this);
    exit = new Command("Exit", Command.EXIT, 1);
    add = new Command("Add",Command.SCREEN,2);
    update = new Command("Update",Command.SCREEN,2);
    delete = new Command("Delete",Command.SCREEN,2);
    view = new Command("View",Command.SCREEN,2);
    rcdId= new TextField("Record ID :","",5,TextField.NUMERIC);
    title= new TextField("Title :","",11,TextField.ANY);
    quantity= new TextField("Quantity :","",8,TextField.NUMERIC);
    price= new TextField("Retail price :","",8,TextField.ANY);
    profit= new TextField("Profit margin:","",8,TextField.ANY);
    director= new TextField("Director :","",11,TextField.ANY);
    publish= new TextField("Publisher :","",11,TextField.ANY);
    actors= new TextField("Actors :","",11,TextField.ANY);
    rs = RecordStore.openRecordStore("My CD Datbase Directory", true);
    form = new Form("My CD Database");
    form.append(rcdId);
    form.append(title);
    form.append(quantity);
    form.append(price);
    form.append(profit);
    form.append(director);
    form.append(publish);
    form.append(actors);
    form.addCommand(exit);
    form.addCommand(add);
    form.addCommand(update);
    form.addCommand(delete);
    form.addCommand(view);
    form.setCommandListener(this);
    public void startApp() {
    display.setCurrent(form);
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    try {
    rs.closeRecordStore();
    } catch (RecordStoreException ex) {
    ex.printStackTrace();
    public void commandAction(Command c, Displayable d) {
    alert.setTimeout(3000);
    alert1.setTimeout(3000);
    String str;
    byte bytes[];
    int recordID;
    try{
    if(c==add){
    str = title.getString()+":"+quantity.getString()+
    ":"+price.getString()+":" +profit.getString()+
    ":"+director.getString()+":"+publish.getString ()+
    ":"+actors.getString();
    bytes=str.getBytes();
    recordID = rs.addRecord(bytes, 0, bytes.length);
    System.out.println("Record of ID:"+recordID+" is added");
    Display.getDisplay(this).setCurrent(alert);
    }else if(c==update){
    recordID = Integer.parseInt(rcdId.getString());
    str = title.getString()+":"+quantity.getString()+
    ":"+price.getString()+":" +profit.getString()+
    ":"+director.getString()+":"+publish.getString ()+
    ":"+actors.getString();
    bytes=str.getBytes();
    rs.setRecord(recordID, bytes, 0, bytes.length);
    Display.getDisplay(this).setCurrent(alert1);
    }else if(c == delete){
    recordID = Integer.parseInt(rcdId.getString());
    rs.deleteRecord(recordID);
    Display.getDisplay(this).setCurrent(alert2);
    }else if(c == view ){
    recordID = Integer.parseInt(rcdId.getString());
    bytes = new byte[rs.getRecordSize(recordID)];
    rs.getRecord(recordID,bytes,0);
    String str1 = new String(bytes);
    int index = str1.indexOf(":");
    title.setString(str1.substring(0));
    quantity.setString(str1.substring(1));
    price.setString(str1.substring(2));
    profit.setString(str1.substring(3));
    director.setString(str1.substring(4));
    publish.setString(str1.substring(5));
    actors.setString(str1.substring(6));
    }else if( c == exit){
    destroyApp(true);
    notifyDestroyed();
    }catch(Exception e){
    e.printStackTrace();
    }

    *To change this template, choose Tools | Templates*
    and open the template in the editor.
    *import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;*
    *import javax.microedition.rms.*;
    *@author RyanLCC*
    public class CdSeller extends MIDlet implements CommandListener{
        private Display display;
        private Form form;
        private Command add, view, update, delete, exit;
        private TextField rcdId, title, quantity, price, profit, director, publish, actors;
        private RecordStore rs;
        private Alert alert = new Alert("New Data Added !!!");
        private Alert alert1 = new Alert("Database Upated!!!");
        private Alert alert2 = new Alert("Record Deleted!!!");
        private Alert alert3 = new Alert("Looking Data!!!");
        public CdSeller()throws RecordStoreException{
        display = Display.getDisplay(this);
        exit = new Command("Exit", Command.EXIT, 1);
        add = new Command("Add",Command.SCREEN,2);
        update = new Command("Update",Command.SCREEN,2);
        delete = new Command("Delete",Command.SCREEN,2);
        view = new Command("View",Command.SCREEN,2);
        rcdId= new TextField("Record ID     :","",5,TextField.NUMERIC);
        title= new TextField("Title         :","",11,TextField.ANY);
        quantity= new TextField("Quantity   :","",8,TextField.ANY);
        price= new TextField("Retail price  :","",8,TextField.ANY);
        profit= new TextField("Profit margin:","",8,TextField.ANY);
        director= new TextField("Director   :","",11,TextField.ANY);
        publish= new TextField("Publisher   :","",11,TextField.ANY);
        actors= new TextField("Actors       :","",11,TextField.ANY);
        rs = RecordStore.openRecordStore("My CD Datbase Directory", true);
        form = new Form("My CD Database");
        form.append(rcdId);
        form.append(title);
        form.append(quantity);
        form.append(price);
        form.append(profit);
        form.append(director);
        form.append(publish);
        form.append(actors);
        form.addCommand(exit);
        form.addCommand(add);
        form.addCommand(update);
        form.addCommand(delete);
        form.addCommand(view);
        form.setCommandListener(this);
        public void startApp() {
            display.setCurrent(form);
        public void pauseApp() {
        public void destroyApp(boolean unconditional) {
            try {
                rs.closeRecordStore();
            } catch (RecordStoreException ex) {
                ex.printStackTrace();
        public void commandAction(Command c, Displayable d) {
            alert.setTimeout(3000);
            alert1.setTimeout(3000);
            String str;
            byte bytes[];
            int recordID;
            try{
                if(c==add){
                    str = title.getString()+":"+quantity.getString()+
                          ":"+price.getString()+":" +profit.getString()+
                          ":"+director.getString()+":"+publish.getString()+
                          ":"+actors.getString();+
    +                bytes=str.getBytes();+
    +                recordID = rs.addRecord(bytes, 0, bytes.length);+
    +                System.out.println("Record of ID:"+recordID+" is added");
                    Display.getDisplay(this).setCurrent(alert);
                }else if(c==update){
                    recordID = Integer.parseInt(rcdId.getString());
                    str = title.getString()+":"+quantity.getString()+
                          ":"+price.getString()+":" +profit.getString()+
                          ":"+director.getString()+":"+publish.getString()+
                          ":"+actors.getString();+
    +                bytes=str.getBytes();+
    +                rs.setRecord(recordID, bytes, 0, bytes.length);+
    +                System.out.println("Record of ID:"+recordID+" is updated");
                    Display.getDisplay(this).setCurrent(alert1);
                }else if(c == delete){
                    recordID = Integer.parseInt(rcdId.getString());
                    rs.deleteRecord(recordID);
                    System.out.println("Record of ID:"+recordID+" is deleted");
                    Display.getDisplay(this).setCurrent(alert2);
                }else if(c == view ){
                    recordID = Integer.parseInt(rcdId.getString());
                    bytes = new byte[rs.getRecordSize(recordID)];
                    rs.getRecord(recordID,bytes,0);
                    String str1 = new String(bytes);
                    int index = str1.indexOf(":");
                    title.setString(str1.substring(0));
                    quantity.setString(str1.substring(1));
                    price.setString(str1.substring(2));
                    profit.setString(str1.substring(3));
                    director.setString(str1.substring(4));
                    publish.setString(str1.substring(5));
                    actors.setString(str1.substring(6));
            }else if( c == exit){
                destroyApp(true);
                notifyDestroyed();
        }catch(Exception e){
            e.printStackTrace();
    Starting emulator in execution mode
    Installing suite from: http://127.0.0.1:59543/RecordStore.jad
    Record of ID:1 is added
    Record of ID:2 is added
    java.lang.IllegalArgumentException
    at javax.microedition.lcdui.TextField.setCharsImpl(), bci=79
    at javax.microedition.lcdui.TextField.setString(), bci=37
    at CdSeller.commandAction(CdSeller.java:120)
    at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46
    at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74
    at com.sun.midp.chameleon.layers.SoftButtonLayer.commandSelected(), bci=11
    at com.sun.midp.chameleon.layers.MenuLayer.pointerInput(), bci=170
    at com.sun.midp.chameleon.CWindow.pointerInput(), bci=76
    at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handlePointerEvent(), bci=19
    at com.sun.midp.lcdui.DisplayEventListener.process(), bci=296
    at com.sun.midp.events.EventQueue.run(), bci=179
    at java.lang.Thread.run(Thread.java:619)
    javacall_lifecycle_state_changed() lifecycle: event is JAVACALL_LIFECYCLE_MIDLET_SHUTDOWNstatus is JAVACALL_OK
    I had tired to change the quantity= new TextField("Quantity   :","",8,TextField.ANY);+ but still giving me the same problem...
    Here again..Thankx alot..

  • How to determine is a java app is running in development mode

    i am stumped with this problem. i am developeing a app in eclipse, and there is a update feature that i do not want to run when i am running the app from eclipse. now when i was developing in visual studio there was a property which i could use to determine if the programming mode or not. i do not know how to do this in java. any hints or suggestion is appreciated.

    use JVM arguments to parameterize the app

  • Java applet - how to do this?

    I am translating a Midlet project to JApplet project. Microedition, UDPDatagramConnection, not available and lots more. How can tune this for JavaSE?
    // code..........
    package sip;
    import javax.swing.JApplet;
    import javax.microedition.io.*;
    //import javax.microedition.midlet.*;
    //import javax.microedition.lcdui.*;
    import java.io.*;
    import net.*;
    import iax.audio.*;
    //import iax.audio.gsm.*;
    //import rtp.*;
    public class InviteMIDlet extends JApplet implements CommandListener, SIPProviderListener {
    // Vaiables to assign
    private Display display;
    public Form form;
    private TextField To;
    private Command sendCmd;
    private Command exitCmd;
    private Command hangupCmd;
    public int sdpPort = 0;
    private UDPDatagramConnection rtpCon = null;
    private boolean incall = false;
    // Sip Digest parameters
    private String UserName = "";
    private String passwd = "123";
    private String SipServerIP = "212.";
    private int SipServerPort = 5060;
    // Sip parameters
    private SIPProvider provider;
    private String MediaIP = null;
    private int MediaPort = 0;
    // Thread assign
    private UDPSend udpSend;
    private UDPReceive udpReceive;
    private AudioCapture audioCapture;
    private AudioPlayer audioPlayer;
    // End of Thread assign
    // Main midlet parameters
    public InviteMIDlet() {
    form = new Form("SIP Dialer");
    try {
    display = Display.getDisplay(this);
    To = new TextField("To:", "0012127773456", 40, TextField.LAYOUT_LEFT);
    form.append(To);
    sendCmd = new Command("Call", Command.ITEM, 1);
    form.addCommand(sendCmd);
    hangupCmd = new Command("Hangup", Command.ITEM, 2);
    form.addCommand(hangupCmd);
    exitCmd = new Command("Exit", Command.EXIT, 3);
    form.addCommand(exitCmd);
    form.setCommandListener(this);
    rtpCon = (*UDPDatagramConnection*) Connector.open("datagram://:");
    sdpPort = rtpCon.getLocalPort();
    provider = new SIPProvider(UserName,passwd,SipServerIP, SipServerPort, 1225);
    provider.start();
    provider.addSIPProviderListener(this);
    } catch (Exception ex1) {
    ex1.printStackTrace();
    }

    shamuntoha wrote:
    UDPDatagramConnection is available under MIDP/Midlet. But after migration to j2se, it shows microedition does not exist. What is that mean?.. None of the J2ME (or JME - I forget what they're calling it this instant) classes are available in J2SE ((J)Applets, (J)Frames etc.).
    Usually there is a J2SE equivalent. The JavaDocs for J2SE are available for download, or for web browsing at [http://java.sun.com/javase/6/docs/api/index.html]. I say usually since I can find no letter for letter equivalent of UDPDatagramConnection in the J2SE. There are a variety of classes that mention Datagram. Perhaps if you start there, you will figure how to do what J2ME does.
    ..i want to switch the same code, concept, in to j2se.
    rtpCon = (UDPDatagramConnection) Connector.open("datagram://:");
    sdpPort = rtpCon.getLocalPort();BTW - the advice to use code tags still stands. Most people will not so much as glance at code that is not formatted. After all, which is easier to read, this..
    rtpCon = (UDPDatagramConnection) Connector.open("datagram://:");
    sdpPort = rtpCon.getLocalPort();
    ..or this?
    rtpCon = (UDPDatagramConnection) Connector.open("datagram://:");
    sdpPort = rtpCon.getLocalPort();

  • Hello. After this update(Java for OS X 2013-003) stop working Ps3 media server. How to fix it?

    Hello. After this update(Java for OS X 2013-003) stop working Ps3 media server. How to fix it?

    I fix it. I restored the contents of /System/Library/Java/JavaVirtualMachines with the contents found in my latest TimeMachine backup from before the update, PMS works like  again. Something in the latest Java update does break the PS3 mediaserver.

  • Java.lang.illegalaaccesserror  : How to resolve this error?

    Hi All,
    Following is the stack trace i'm getting when I'm running the application.
    <i>java.lang.IllegalAccessError: tried to access method com.bp.ngl.cust.bwmodel.BWModel.wdGetStaticMetadataCache()Lcom/sap/tc/webdynpro/modelimpl/dynamicrfc/DynamicRFCModel$MetadataCache; from class com.bp.ngl.cust.bwmodel.Zy_Search_Supp_Reports_Bw_Input
    </i>
    Well can someone tell me how is that this error is getting generated? What it means by accessing method ?
    Well Here i'm using the mentioned BAPI and for that i've created input of type.
    Zy_Search_Supp_Reports_Bw_Input  input = new Zy_Search_Supp_Reports_Bw_Input ();
    And stack trace indicates this line also.
    Can somebody help me with this?
    Thanks in advance
    Srikant

    Hi Patrick
    The interface is not changed and also the note no. as suggested by the Nagarajan is also not helpful. I would like to know what kind of illegal access i'm trying to do as nothing it is specifying in the Stack trace.
    Following is the stack trace:
    <i>
    java.lang.IllegalAccessError: tried to access method com.bp.ngl.cust.bwmodel.BWModel.wdGetStaticMetadataCache()Lcom/sap/tc/webdynpro/modelimpl/dynamicrfc/DynamicRFCModel$MetadataCache; from class com.bp.ngl.cust.bwmodel.Zy_Search_Supp_Reports_Bw_Input
        at com.bp.ngl.cust.bwmodel.Zy_Search_Supp_Reports_Bw_Input.<init>(Zy_Search_Supp_Reports_Bw_Input.java:51)
        at com.bp.ngl.custsupp.FindReportComp.<init>(FindReportComp.java:433)
        at com.bp.ngl.custsupp.wdp.InternalFindReportComp.<init>(InternalFindReportComp.java:447)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    </i>
    Thanks
    Srikant

  • BO XI R2 Java Admin - how to accss this

    I don't find "All Programs  ->  Business Objects  XI R2 -> Business Objects Enterprise -> Business Objects Enterprise Java Admin".
    I suspect some how it got removed.
    Could you tell me how to access this? the full URL
    http://<servername>/.....
    I don't see see "Java admin"

    http://yourservernamehere:8080/businessobjects/enterprise115/adminlaunch/launchpad.html

  • How can I uninstall this latest java upgrade?

    I just installed a java upgrade called "build 1.6.0_05-b13 and now I cannot get Microsoft Front Page 2003 to work. I have to use MS Front Page to maintain my website. How can I uninstall this latest java upgrade so it will go back to using my previous version of java?

    I believe you may have posted your question to the wrong forum. This forum is for the JavaHelp system, which is used for developing online Help for applications, not for general help on Java.

  • How to implement this Java Script?

    Hello,
    I have this script to remove the link from titles of web parts.  I am new to SharePoint 2013 development. I am not sure where to put it. Not sure what file to put it and how to implement it.  How can ensure this code gets run on pages through out
    my SharePoint 2013 site.
    jQuery(document).ready(function () {
           $('a').filter("[href='###']").each(function () {
            $(this).replaceWith($(this).html());
    Reference
    https://expectedexception.wordpress.com/2012/01/30/how-to-remove-the-list-view-web-part-title-bar-link/
    Paul

    Get the page Url from the website and go to Sharepoint Designer and browse the page and add the script within a scritp tag <script>jQuery(document).ready(function
           $('a').filter("[href='###']").each(function () {
            $(this).replaceWith($(this).html());
     });</script>
    how to open a site in SP Designer:
    https://support.office.com/en-ie/article/Open-a-SharePoint-site-94d33d70-3f07-4a8e-b5b5-1137a9c36e74
    another option is to find the global file that contain the scripts and add it as a method there. You can check these files by viewing source of the page.
    note also that the Jquery reference is needed for this code to execute.
    Fouad Roumieh

  • URGENT-How to run command in java application???

    URGENT!
    i would like to run command to invoke some applications (like invoke application using command line in DOS) in my java appication.
    Do anyone know how to do this? Thanks a lot.

    This question has been asked upteen times.
    ok the code is
    for win95
    Runtime.getRuntime().exec( "start c:\\tmp.txt" );
    for win 2000
    Runtime.getRuntime().exec( "cmd /C startc:\\tmp.txt" );
    //change the file to your desire file..
    i am not so sure about win98, sorry...

  • How do I include a JAVA file in my website  using DreamweaverCC ?

    Hi.  I searched the forums and it seems that all questions relating to JAVA and Dreamweaver elicit zero replies.
    I hope that someone has some direction.  Thanks again.
    I have a JAVA file that I want to include or have run within one of my pages in my WebSite.
    file > new > create > and there is not an option for JAVA but there is one for PHP etc. etc.
    How do I incorporate a java script into my Web Site ?
    I thought that I could just copy the code into the file here - at least to begin with  - but JAVA  runs in the background.
    I am lost
    conceptually
    and I do not know how to go about this task
    structurally.
    Thanks again,
    Regina

    JQuery is a core JavaScript library used by millions of web sites.  It's the "do more & write less code framework."  If you're into re-inventing the wheel every time you need an advanced feature (plugin), feel free to manually code it yourself with JavaScript.  However, you'll need to test & debug your scripts in every conceivable browser and OS before you can be sure it's viable for use on a production site.
    On the other hand, you could use a plugin and be up & running in 5 minutes or less. See the code below.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5, with Fancybox2 Viewer</title>
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <!--FANCYBOX plugins-->
    <link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
    <script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
    <style>
    body {
        background: silver;
        font-family:Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
    #wrapper {
        width: 1000px; margin:0 auto;
        background:#FFF;
    /**this styles image container**/
    #thumbs p {
        float: left;
        width: 180px;
        height: 12.5em;
        margin: 10px 22px 0 22px; /**space between containers**/
        padding: 10px; /**space around containers**/
        border: 1px solid silver;
        /**rounded borders**/
        -moz-border-radius: 20px;
        -webkit-border-radius: 20px;
        border-radius: 20px;
        /**this styles caption text**/
        font: italic 14px/1.5 Geneva, Arial, Helvetica, sans-serif;
        color: #666;
        text-align: center;
    /**recommend using same size images**/
    #thumbs img {
        width: 160px; /**adjust width to thumbnail**/
        height: 120px; /**adjust height to thumbnail**/
        margin-bottom: 1.5em;
        opacity: 0.75;
    #thumbs img:hover { opacity: 1.0 }
    /**float clearing**/
    #thumbs:after {
        content: ".";
        clear: left;
        font-size: 0px;
        line-height: 0;
        display: block;
        visibility: hidden;
    </style>
    </head>
    <body>
    <div id="wrapper">
    <h1><a href="http://fancyapps.com/fancybox/">Fancybox2</a> Viewer with images</h1>
    <!--insert thumbnails with links to full size images below-->
    <div id="thumbs">
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 1" /></a> <br />
    Caption 1 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 2" /></a> <br />
    Caption 2 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 3" /></a> <br />
    Caption 3 </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 4" /></a> <br />
    Caption 4 </p>
    <!--end thumbs--></div>
    <!--end wrapper--></div>
    <!--FancyBox function code-->
    <script>
    $(document).ready(function() {
        $('.fancybox').fancybox();
    </script>
    </body>
    </html>
    Nancy O.

Maybe you are looking for

  • How can I set up an HTML form to send iCal invites from a chosen date?

    I am working on a site that has a form for booking appointments, and I have used a popup calendar and time for users to select. However, this needs to be sent to the recipient as an iCal event via email so they can just click Accept and it goes into

  • IPod stops syncing in middle of file transfer

    Hello all, I'm having some problems with my 5th generation iPod when syncing to my notebook (running OS X Snow Leopard). I have it set to manual sync, and when I move my music files to my iPod to begin syncing, it will sync up to approximately 5 or s

  • Where is Safari 7 History Stored in Mavericks

    I could not find this in the discussions. Is safari 7 History stored in an external file in Mavericks?  If so, what is the file name and where is it located?

  • Refresh Time to be reduced in 11G

    Hi Experts, Kindly provide your suggestions, We have a scenario where the reporting database is refreshed on a daily basis from the production. the apps team has requested us to do this activity post EOD backup. Please suggest the fastest method to e

  • IMessage has become unreliable?

    Has anyone else noticed that iMessage has become horribly unreliable in the past few weeks? I regularly use iMessage to chat with friends, and my account is activated on an iPhone 5S, iPad Mini and two Macs running Mavericks. Until a few weeks ago ev