Help with css3 rollover tag please

Hey guys I'm stumped and need help with positioning some big picture buttons.
Here is the link o the home page http://ceramic-planet2.businesscatalyst.com/
As u can see I have four picture buttons using css3 roller but I want all four buttons next to each other
2 buttons next to each other with the next 2 directly below .
Now orgininally I used the dreamweaver rollover button and everything was inline so flowed across the page no problem. These are divs and I've tried to make 2 panels side by side among other hings but I'm not getting there so I thought one of u clever guys would have no problems telling me what to do.
Please help I'm not getting the inline or absolute placement right
Dave

Hey Dave,
You need to remove the margin from #mosaicbutton, #kitchenbutton
and then add float : left; to #bathroombutton, #floorbutton, #mosaicbutton, #kitchenbutton,
That'll get you buttons sitting the way you want them, you may need to play with the margins after that.
Pat

Similar Messages

  • Please help with margins and tags

    Hope someone can help with a sudden problem I’m having with tags and margins. Out of the blue it seems Dreamweaver wants to create a margin between two <div’s,> but only if a tag is applied to the text, such as <p><h1><h2> etc.  Here’s an example; Say at the top of the page you have a <div> named “header,” below it there’s a <div> named “content.” So far no problem, but as soon as I put text in the “content” <div> and give the text a tag, the “content <div> drops roughly 25 – 30px below the “header” <div> leaving a margin.  To make it even stranger; If I were to insert an image into the “content” <div> first, then the text, it behaves as normal.  I’m just baffled; if anyone has an answer it would be greatly appreciated.

    That did it, thank you so much!
    It's still just a bit of a mystery why it suddenly started doing this, guess I’ll just have to strip that code in manually from now on, unless you have the answer on how to have it default to a margin and padding of 0.
    Anyway, thank you for your help.

  • Need some help with the colour profile please. Urgent! Thanks

    Dear all, I need help with the colour profile of my photoshop CS6. 
    I've taken a photo with my Canon DSLR. When I opened the raw with ACDSee, the colour looks perfectly ok.
    So I go ahead and open in photoshop. I did nothing to the photo. It still looks ok
    Then I'm prompt the Embedded Profile Mismatch error. I go ahead and choose Discard the embedded profile option
    And the colour started to get messed up.
    And the output is a total diasater
    Put the above photo side by side with the raw, the red has became crimson!!
    So I tried the other option, Use the embedded profile
    The whole picture turns yellowish in Photoshop's interface
    And the output is just the same as the third option.
    Could someone please guide me how to fix this? Thank you.

    I'm prompt the Embedded Profile Mismatch error. I go ahead and choose Discard the embedded profile option
    always use the embedded profile when opening tagged images in Photoshop - at that point Photoshop will convert the source colors over to your monitor space correctly
    if your colors are wrong at that point either your monitor profile is off, or your source colors are not what you think they are - if other apps are displaying correctly you most likely have either a defective monitor profile or source profile issues
    windows calibrate link:
    http://windows.microsoft.com/en-US/windows7/Calibrate-your-display
    for Photoshop to work properly, i recall you want to have "use my settings for this device" checked in Color Management> Device tab
    you may want to download the PDI reference image to check your monitor and print workflows
    and complete five easy steps to profile enlightenment in Photoshop
    with your settings, monitor profile and source profiles sorted out it should be pretty easy to pinpoint the problem...

  • Need help with threads?.. please check my approach!!

    Hello frnds,
    I am trying to write a program.. who monitors my external tool.. please check my way of doing it.. as whenever i write programs having thread.. i end up goosy.. :(
    first let me tell.. what I want from program.. I have to start an external tool.. on separate thread.. (as it takes some time).. then it takes some arguments(3 arguments).. from file.. so i read the file.. and have to run tool.. continously.. until there are arguments left.. in file.. or.. user has stopped it by pressing STOP button..
    I have to put a marker in file too.. so that.. if program started again.. file is read from marker postion.. !!
    Hope I make clear.. what am trying to do!!
    My approach is like..
    1. Have two buttons.. START and STOP on Frame..
    START--> pressed
    2. check marker("$" sign.. placed in beginning of file during start).. on file..
         read File from marker.. got 3 arg.. pass it to tool.. and run it.. (on separate thread).. put marker.. (for next reading)
         Step 2.. continously..
    3. STOP--> pressed
         until last thread.. stops.. keep running the tool.. and when last thread stops.. stop reading any more arguments..
    Question is:
    1. Should i read file again and again.. ?.. or read it once after "$" sign.. store data in array.. and once stopped pressed.. read file again.. and put marker ("$" sign) at last read line..
    2. how should i know when my thread has stopped.. so I start tool again??.. am totally confused.. !!
    please modify my approach.. if u find anything odd..
    Thanks a lot in advance
    gervini

    Hello,
    I have no experience with threads or with having more than run "program" in a single java file. All my java files have the same structure. This master.java looks something like this:
    ---master.java---------------------------------------------------
    import java.sql.*;
    import...
    public class Master {
    public static void main(String args []) throws SQLException, IOException {
    //create connection pool here
    while (true) { // start loop here (each loop takes about five minutes)
    // set values of variables
    // select a slave process to run (from a list of slave programs)
    execute selected slave program
    // check for loop exit value
    } // end while loop
    System.out.println("Program Complete");
    } catch (Exception e) {
    System.out.println("Error: " + e);
    } finally {
    if (rSet1 != null)
    try { rSet1.close(); } catch( SQLException ignore ) { /* ignored */ }
    connection.close();
    -------end master.java--------------------------------------------------------
    This master.java program will run continuously for days or weeks, each time through the loop starting another slave process which runs for five minutes to up to an hour, which means there may be ten to twenty of these slave processes running simultaneously.
    I believe threads is the best way to do this, but I don't know where to locate these slave programs: either inside the master.java program or separate slave.java files? I will need help with either method.
    Your help is greatly appreciated. Thank you.
    Logan

  • Need help with flash player installation please !!!!

    Hello,
    I need help with my flash player installation because every time I access a movie this is the message I receive. 
    This content on Xfinity TV is not available for viewing with Chrome's "Incognito" mode. To play this video using Chrome, please view this page without "Incognito" mode.
    Still having problems? Try resetting your Flash player license.

    Incognito mode is a Google Chrome setting when you open a new window (Cmd+Shift+N on a Mac Ctrl+Shift+N on Windows) It opens a "private" window with no cookies and no tracking. The problem with it is that when you disable cookies, your license files are not sent to the site (whetehr it's YouTube or xFinity or any other that uses license files for paid content)  and it treats you as if you're a first time visitor. Paid videos won't play wihtout the cookies sending the license file info.
    This isn't a Flash Player setting. It's in Chrome. I did some research and according to Google, "Incignito" mode is off by default, and can ONLY be activate by the keyboard shortcut. There IS a way to disable it from the registry http://dev.chromium.org/administrators/policy-list-3#IncognitoModeAvailability

  • Some help with the 10g install, please.

    Hi,
    We want to install 10g, we are currently running 9i. We want to do this in silent mode since we have so many databases to move to 10g. We've got a few questions & concerns about the procedures that are supposed to be done.
    If someone could kindly read over some of our concerns, we'd appreciate it.
    First, we used the -record method to create a response file. How much do we have to manually edit that file once Oracle creates it for us? Or is it ready to go after we exit the OUI.
    When we tried to do the install, it said it successfully installed 10g, but it failed on some of the configuration assistants. Do we need to run all of the configuration assistants? I mean, TNS is already configured. Does it change for the 10g install?
    Additionally, once the 10g software is complete, the environment is still set to 9i. How does that get changed for the silent install to continue with the DBUA? I mean, we do have databases that need upgrading.
    Any help with steps would be very helpful to us. We're getting error messages like this:
    The installation of Oracle Database 10g was successful, but some
    optional configuration assistants failed, were cancelled or skipped.
    Please check
    '/ora2/app/oracle/oraInventory/logs/silentInstall2006-10-26_01-26-39PM.log'
    for more details.
    UnsatisfiedLinkError exception loading native library: njni10
    java.lang.UnsatisfiedLinkError: jniGetOracleHome
    at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source)
    at oracle.net.ca.NetCA.main(Unknown Source)
    Oracle Net Services configuration failed. The exit code is -1
    Thank you in advance for your help.

    Hi,
    You are installing in same ORACLE_HOME?
    Your Operation System is UNIX?
    Eder

  • Help with Rendering/Finalizing Project Please?

    Hi,
    I am so new to this entire Adobe and video making that I've spent the last few hours pulling hair literally.  I am hoping that some of you experts can take some time to give this novice some much needed guidance.  Okay, I'm begging!
    I recorded a wedding on a XHA1 MiniDV camera in 1080p 24fps.  Captured the clips to PP CS4 which in turn makes them MPEG, I believe.  Included in my project are addition clips imported from a Canon HF S21 also in 1080p 24fps and a Rebel T2i in ?? format.  Didn't use too many clips from the rebel. 
    Anyhow, my project settings in PP are:
    Video -  Display format = Frames
    Audio - Display format = Audio Samples
    Capture Format = HDV
    All Scratch disks are saved on to my desktop with 284 GB
    Here is a picture of the sequence settings:
    Again, sorry for the ignorance and stupiditiy.  I am wondering what would help.
    I am trying to burn it all with chapter markers and additional features to a DVD.
    - What would be the BEST settings for exporting to Encore? 
    - Should I separate each section into a different sequence - would that help?  For example, the pre-ceremony to one sequence.  The ceremony to another.  The reception to another.    Or should I make new projects for each? 
    - How can I make my computer faster?  Is it the memory, ram, etc?  What should I do?
    Right now, it has failed over and over in rendering in After Effects.  It stops encoding when I export to AME.  It says 158 hours for rendering in PP.
    HELP!
    I am using an iMac and here are computer specs (again, I am not even sure what to post to help you all help me):
      Model Name: iMac
      Model Identifier: iMac11,3
      Processor Name: Intel Core i7
      Processor Speed: 2.93 GHz
      Number Of Processors: 1
      Total Number Of Cores: 4
      L2 Cache (per core): 256 KB
      L3 Cache: 8 MB
      Memory: 8 GB
      Processor Interconnect Speed: 4.8 GT/s
      Boot ROM Version: IM112.0057.B00
      SMC Version (system): 1.59f2
    Here is a pic of what I'm working on.  I know the pic-in-pic feature probably doesn't help with rendering time either but 158 hours is killing me.  In fact, when I go to sleep, I wake up to an error message where PP has closed.

    leevang,
           Your computer looks great.  I wouldn't be too worried about the time PP shows for encoding etc.
    I have found that right when I first start to encode a project, 73 hours or 12 hours is normal. Rendering is not necessary for encoding.  However  when I look back later, the time has dropped greatly.
    Down to 2 or 3 hours.  that's when I follow Jeff B.'s suggestions when I do a  2X scan.......

  • I need help with the https class please.

    Hello, i need add an authentication field in my GET request using HTTPS to authenticate users. I put the authentication field using the setRequestProperty method, but it doesn't appear when i print all properties using the getRequestProperties method. I wrote the following code:
    try{
    URL url = new URL ("https://my_url..");
    URLConnection conexion;
    conexion = url.openConnection();
    conexion.setRequestProperty("Authorization",my_urlEncoder_string);
    conexion.setRequestProperty("Host",my_loginServer);
    HttpsURLConnection httpsConexion = (HttpsURLConnection) conexion;
    httpsConexion.setRequestMethod("GET");
    System.out.println("All properties\r\n: " + httpsConexion.getRequestProperties());
    }catch ....
    when i run the program it show the following text:
    All properties: {Host=[my_loginServer]}
    Only the Host field is added to my HttpsURLConnection. The authentication field doesnt appear in standar output. How can i add to my HttpsURLConnection an Authentication field?
    thanks

    I have moved this to the main Dreamweaver forum, as the other forum is intended to deal with the Getting Started video tutorial.
    The best way to get help with layout problems is to upload the files to a website and post the URL in the forum. Someone can then look at the code, and identify the problem. Judging from your description, it sounds as though the Document window is narrow, which would result in the final menu tab dropping down to the next row. Try turning on Live view or previewing the page in a browser. Design view gives only an approximate idea of the final layout. Live view renders the page as it should look in a browser.

  • I need help with the navigation menu please?

    I have been working my way through your six part printed instructions and I am styling the header and navigation menu.  The bullet points disappeared which was correct and the tabs moved to the right, as they should, but one tab sits underneath another tab and all tabs are covered up by my main heading.  This is dreamweaver CS6.
    It looks a bit of a mess!

    I have moved this to the main Dreamweaver forum, as the other forum is intended to deal with the Getting Started video tutorial.
    The best way to get help with layout problems is to upload the files to a website and post the URL in the forum. Someone can then look at the code, and identify the problem. Judging from your description, it sounds as though the Document window is narrow, which would result in the final menu tab dropping down to the next row. Try turning on Live view or previewing the page in a browser. Design view gives only an approximate idea of the final layout. Live view renders the page as it should look in a browser.

  • Help with some iPhone issues please

    Ok, I am starting to have some problems with my iPhone 3G, and would really appreciate any help with these issues.. here is what is happening
    1) iPhone Vibrate is pretty much broken, turns off and on vibrate by itself.. and now is vibrating very softly.
    2) iPhone wont sync my Music anymore, I have 3 playlists that I use on my iPhone, and none of them will update. When I sync my iPhone, everything syncs but the music.
    3) iPhone sometimes completely freezes and i cant get it to go to the locksreen or power off, so I have to do a hard restart.

    Hi Matt,
    Try restoring the iPhone, this article: http://support.apple.com/kb/HT1414 will walk you through the process.
    If the vibrate and unlock issues persists, the iPhone may need hardware repair. Just make a reservation to have a Genius, at a local Apple retail store, take a look at it or call AppleCare.
    http://www.apple.com/retail/geniusbar/
    U.S. iPhone technical support: 1-800-MY-IPHONE (1-800-694-7466)
    Message was edited by: Jason L

  • Help With Geodetic Rectangular Query Please

    I'm new to spatial so I appreciate your help.
    I have a 3D geodetic coordinate system defined that is index in 2D (lon & lat).
    I want to do a query that returns all points (lat, lon, alt) within the rectangle described by the query.
    I read in the "Oracle Spatial User's Guide" that this rectangle must have 5 points (since I'm using geodetic).
    I have not found a good example of how to format the query. Can you help with an example?

    here is an example which assume a wgs-84 coordinate system (srid=8307). Note that altitude will be ignored.
    select col1,col2,etc
    from geom_table
    where sdo_relate(geom,mdsys.sdo_geometry(2003,8307,NULL,
    mdsys.sdo_elem_info_array(1,1003,1),
    mdsys.sdo_ordinate_array(-70.05,40.8, -69.05,40.8, -69.05,41.2, -70.05,41.2, -70.05,40.8)),
    'mask=anyinteract querytype=window') = 'TRUE';

  • I need help with printing labels.  please

    I need help with printing labels.  thanks in advance

    Welcome to Apple Support Communities.
    In Address Book, first select a name or group of names to print.
    Then File, Print, select Style, Mailing Labels, then Layout to select a specific target label (such as an Avery number), or define your own...

  • Please Help with multiple video tag editing

    I have about 650 music videos that I would like to have show up under the music video tab in my ipod and would like to know if there are any apps out there thay will allow me to change all the videos to Music Videos so they all dont show as Movies under iTunes and my iPod without having to right click and get info than change to music video - I think this option not already being included in Itunes for iPod videos is extremely stupid - anyone who can help me out and shed some light on a faster way please feel free to tell me and If there is a way in itunes to do this please let me know as I cant seem to find one
    And all Apple care says is maybe in the future we will look into to implementing this feature or something like it if we see fit and makes sense as we like to make our software as user friendly as possible
    Thanx
    Black Ipod Video 60gb
      Windows XP Pro  

    bump this up
    As I think this is a very good question and it should deff be looked into I mean cmon this is crazy there is no good reason that you should have to edit them 1 by 1
    Black 80gb Gen 5.5 Video as of Today

  • Urgent Help With Connections File Needed Please

    Hello All!
    I am getting the following error when I attempt to test my
    live site. I am testing database connectivity within my site that
    is hosted by GoDaddy. All pages are ASP and the database is stored
    in the root directory in GoDaddy's folder called "access_db". The
    folder has read/write access.
    Here is the error:
    Microsoft JET Database Engine error '80040e4d'
    Cannot start your application. The workgroup information file
    is missing or opened exclusively by another user.
    /sitename/requestquote/index.asp, line 130
    Here is the code from the connections file:
    <%
    ' FileName="Connection_ado_conn_string.htm"
    ' Type="ADO"
    ' DesigntimeType="ADO"
    ' HTTP="false"
    ' Catalog=""
    ' Schema=""
    Dim MM_connNAME_STRING
    MM_connNAME_STRING =
    "Provider=Microsoft.Jet.OLEDB.4.0;DataSource=username\access_db\filename.mdb;UserId=usern ame;Password=password;"
    %>
    The error above refrences "/sitename/requestquote/index.asp,
    line 130", and here is the code:
    rs_quote.ActiveConnection = MM_connNAME_STRING
    Please help.
    Thanks - Matt

    Sorry Tim? This is Dave. Did you read what said? I'm not
    Matt.
    Dave
    "TC2112" <[email protected]> wrote in message
    news:[email protected]...
    > It could be, you'd have to check in the control panel to
    make sure
    > permissions are set to read and write.
    > Have you tried changing the path in your connection
    string to the GoDaddy
    > path and uploading the file?
    > The info I posted tells you how to find out what the
    path on GoDaddy is.
    >
    > Tim
    >
    >
    > "Baxter" <baxter(RemoveThe :-)@gtlakes.com> wrote
    in message
    > news:[email protected]...
    > > Tim,
    > > Very good reply! I have no experience with GD other
    than the complaints
    I
    > > have read here about connections to databases etc.
    I think that if his
    > > connection test is ok that it has to be a
    permissions issue? What do you
    > > think?
    > > Dave
    > > "TC2112" <[email protected]> wrote in message
    > > news:[email protected]...
    > >> Hello,
    > >>
    > >> Sorry if some of this is repetitive in respect
    to what others have
    > >> advised
    > >> in this thread.
    > >> It's an answer I gave someone with similar
    problems a while ago.
    > >> It does answer your question about the
    successful path on your local
    > > server
    > >> being different than the path on GDs server.
    > >> There are also instructions on how to find the
    path on GD's server if
    > > needed
    > >> for DNS-Less connection.
    > >>
    > >>
    > >> Option 1:
    > >> You can try using a map path function like this
    in your connection
    > >> string:
    > >> access_db is the folder the database is in and
    mydatabase.mdb is the
    > > access
    > >> file.
    > >> Substitute your names.
    > >>
    > >> STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=" &
    > >> Server.MapPath("access_db") &
    "\mydatabase.mdb;User Id=admin;Password="
    > >>
    > >> -or-
    > >>
    > >> Option 2:
    > >> You could try an OLEDB DSN-Less connection
    instead of using a DSN. It's
    > > not
    > >> hard to do.
    > >>
    > >> Step 1 is to figure out the location of the
    root directory on the
    host's
    > >> server..That's very easy to do yourself.
    > >>
    > >> Just make an asp page (I named mine
    "findit.asp"), and put the
    following
    > >> code between the <body> tags, like so:
    > >> <body>
    > >> <%
    > >> Response.Write("The location of this page
    is:<br>")
    > >>
    Response.Write(Request.ServerVariables("PATH_TRANSLATED") &
    "<br>")
    > >> Response.Write("The location of my root
    directory is:<br>")
    > >> Response.Write(Server.MapPath("\"))
    > >> Response.Write Path
    > >> %>
    > >> </body>
    > >>
    > >>
    > >> Upload it to the same location as your site's
    home page.
    > >> Once your new asp page is uploaded, just
    navigate to that page in your
    > >> browser.
    > >>
    > >> For a site on GD the "findit.asp" page displays
    something like this:
    > >>
    > >> The location of this page is:
    > >> d:\hosting\mysite\findit.asp
    > >> The location of my root directory is:
    > >> d:\hosting\mysite
    > >>
    > >> Now that you know the root directory location
    on their server, you can
    > >> figure out the path to your database.
    > >> Let's say that the folder your database is in
    is named _private, and
    it
    > >> happens to be in the root
    > >> directory along with your home page.
    > >>
    > >> Next, just add the database folder name
    (_private) and the database
    > >> inside's name (mydatabase.mdb) to the root
    directory location:
    > >>
    > >> d:hosting\mysite\_private\mydatabase.mdb
    > >>
    > >> That's your Data Source path.
    > >>
    > >> The connection string would look something like
    this:
    > >>
    > >> = "Provider=Microsoft.Jet.OLEDB.4.0;Data
    > >>
    Source=d:hosting\mysite\_private\mydatabase.mdb;User
    ID=;Password=;"
    > >>
    > >> (the code above may appear wrapped (two lines)
    in the forum/ng but it's
    > > one
    > >> line with no return within)
    > >>
    > >> IMPORTANT: If you are using a local testing
    server, make a copy of your
    > >> connection asp page as a backup.
    > >> The reason? The connection information you are
    going to put in this
    file
    > >> will only work on the host's server.
    > >> Once you upload the new connection.asp page
    with the changes for the
    > >> host,
    > >> you'll need to change your local copy back to
    your local connection so
    it
    > >> will work on
    > >> your local testing server.
    > >>
    > >> Upload to server.
    > >>
    > >> Please note: From now on, when you upload (or
    "put" if you're using DW)
    > >> files that refer to your connection asp page
    you're going to get a
    > >> warning
    > >> that your connection asp on the host is
    different than your local copy.
    > >> Always say "No" to updating it, or you'll
    replace the GD DSN-Less
    > > connection
    > >> with your local one.
    > >>
    > >>
    > >> Did you set the appropriate read/write
    permissions on the
    > > directory(folder)
    > >> your database is in?
    > >> You can do that in GD's control panel.
    Hosting> Select your site >
    Manage
    > > to
    > >> open it.
    > >>
    > >> I hope this helps.
    > >>
    > >> For what it's worth, I only use GD for domain
    names now.
    > >> I had numerous problems with some sites hosted
    there, switched them to
    > >> HostMySite and haven't had any.
    > >>
    > >> Take care,
    > >> Tim
    > >>
    > >>
    > >>
    > >>
    > >>
    > >> "Baxter" <baxter(RemoveThe
    :-)@gtlakes.com> wrote in message
    > >> news:[email protected]...
    > >> > Baxter - I get "Connection was Made
    Successfully" if connection to
    the
    > >> > database was made Successfully not sure
    what's going on here? When
    you
    > >> > look
    > >> > at your site files in Dreamwerer on the
    server is there a folder
    named
    > >> > access_db? If so is your data base in that
    folder? The database needs
    > >> > permissions set to read and write to that
    file. Have you checked
    > >> > permissions
    > >> > on the site? does GD give you a control
    panel so that you can set the
    > >> > permissions your self? I have never used
    GD but have seen where
    people
    > >> > have
    > >> > had lots of problems with them when using
    a scripting language. I
    don't
    > >> > know
    > >> > what else it could be at this point.
    > >> > Dave
    > >> > "mtrueblood"
    <[email protected]> wrote in message
    > >> > news:[email protected]...
    > >> >> Baxter - I get "Connection was Made
    Successfully" with the
    credentials
    > >> >> you
    > >> > gave
    > >> >> me. My site works just fine on my
    local machine with
    > > access_trueblood.dsn
    > >> > (it
    > >> >> also worked with the dsn I initally
    created for the site). All pages
    > >> > display
    > >> >> and I get no errors. I think where the
    issue may be, now I am
    guessing
    > >> > here, is
    > >> >> that my connection refrences a
    database located in the folder
    > >> >>
    C:\Users\Administrator\Websites\Sitename\access_db, but once I
    upload
    > > my
    > >> > site,
    > >> >> the database still sits in access_db,
    but the root folder possibly
    has
    > >> > changed
    > >> >> (maybe causing the connection to
    fail).
    > >> >>
    > >> >> Dooza - I don't understand how I can
    use "c:myDsnFile.dsn", when
    once
    > > I
    > >> > upload
    > >> >> my site, "c:myDsnFile.dsn" would then
    not be the location of my dsn.
    > >> >> "c:myDsnFile.dsn" refrences a file on
    my computer. I am using an
    > >> >> online
    > >> > hosting
    > >> >> company. Am I not understanding you
    correctly? See note above. I did
    > > use
    > >> > your
    > >> >> information and got the following
    browser error:
    > >> >>
    > >> >> Microsoft OLE DB Provider for ODBC
    Drivers error '80004005'
    > >> >> General error: Invalid file dsn ''
    > >> >> /sitename/contactus/index.asp, line
    130
    > >> >>
    > >> >> line 130 -
    rs_contactus.ActiveConnection = MM_connTrueblood_STRING
    > >> >>
    > >> >> I am researching on how to do a
    dsn-less connection, unless I can
    get
    > >> > this
    > >> >> figured out.
    > >> >>
    > >> >> Thanks - Matt
    > >> >>
    > >> >
    > >> >
    > >>
    > >>
    > >
    > >
    >
    >

  • New to Java and need help with this program..please!

    I'd really appreciate any helpful comments about this program assignment that I have to turn in a week from Friday. I'm taking a class one night a week and completely new to Java. I'd ask my professor for help, but we can't call him during the week and he never answers e-mails. He didn't tell us how to call from other classes yet, and I just can't get the darn thing to do what I want it to do!
    The assignment requirements are:
    1. Change a card game application that draws two cards
    and the higher card wins, to a Blackjack application
    2. Include a new class called Hand
    3. The Hand class should record the number of draws
    4. The application should prompt for a number of draws
    5. The game is played against the Dealer
    6. The dealer always draws a card if the dealer's hand total is <= 17
    7. Prompt the player after each hand if he wants to quit
    8. Display the total games won by the dealer and total and the total games wond by the player after each hand
    9. Display all of the dealer's and player's cards at the
    end of each hand
    10. Player has the option of drawing an additional card after the first two cards
    11. The Ace can have a value of 11 or 1
    (Even though it's not called for in the requirements, I would like to be able to let the Ace have a value of 1 or an 11)
    The following is my code with some comments about a few things that are driving me nuts:
    import java.util.*;
    import javax.swing.*;
    import java.text.*;
    public class CardDeck
    public CardDeck()
    deck = new Card[52];
    fill();
    shuffle();
    public void fill()
    int i;
    int j;
    for (i = 1; i <= 13; i++)
    for (j = 1; j <= 4; j++)
    deck[4 * (i - 1) + j - 1] = new Card(i, j);
    cards = 52;
    public void shuffle()
    int next;
    for (next = 0; next < cards - 1; next++)
    int rand = (int)(Math.random()*(next+1));
    Card temp = deck[next];
    deck[next] = deck[rand];
    deck[rand] = temp;
    public final Card draw()
    if (cards == 0)
    return null;
    cards--;
    return deck[cards];
    public int changeValue()
    int val = 0;
    boolean ace = false;
    int cds;
    for (int i = 0; i < cards; i++)
    if (cardValue > 10)
    cardValue = 10;
    if (cardValue ==1)     {
    ace = true;
    val = val + cardValue;
    if ( ace = true && val + 10 <= 21 )
    val = val + 10;
    return val;
    public static void main(String[] args)
    CardDeck d = new CardDeck();
    int x = 3;
    int i;
    int wins = 1;
    int playerTotal = 1;
    do {
    Card dealer = (d.draw());
    /**I've tried everything I can think of to call the ChangeValue() method after I draw the card, but nothing is working for me.**/
    System.out.println("Dealer draws: " + dealer);
    do {
    dealer = (d.draw());
    System.out.println(" " + dealer);
    }while (dealer.rank() <= 17);
    Card mine = d.draw();
    System.out.println("\t\t\t\t Player draws: "
    + mine);
    mine = d.draw();
    System.out.println("\t\t\t\t\t\t" + mine);
    do{
    String input = JOptionPane.showInputDialog
    ("Would you like a card? ");
    if(input.equalsIgnoreCase("yes"))
         mine = d.draw();
    System.out.println("\t\t\t\t\t\t" + mine);
         playerTotal++;
         else if(input.equalsIgnoreCase("no"))
    System.out.println("\t\t\t\t Player stands");
         else
    System.out.println("\t\tInvalid input.
    Please try again.");
    I don't know how to go about making and calling a method or class that will combine the total cards delt to the player and the total cards delt to the dealer. The rank() method only seems to give me the last cards drawn to compare with when I try to do the tests.**/
    if ((dealer.rank() > mine.rank())
    && (dealer.rank() <= 21)
    || (mine.rank() > 21)
    && (dealer.rank() < 22)
    || ((dealer.rank() == 21)
    && (mine.rank() == 21))
    || ((mine.rank() > 21)
    && (dealer.rank() <= 21)))
    System.out.println("Dealer wins");
    wins++;
         else
    System.out.println("I win!");
    break;
    } while (playerTotal <= 1);
    String stop = JOptionPane.showInputDialog
    ("Would you like to play again? ");
    if (stop.equalsIgnoreCase("no"))
    break;
    if (rounds == 5)
    System.out.println("Player wins " +
    (CardDeck.rounds - wins) + "rounds");
    } while (rounds <= 5);
    private Card[] deck;
    private int cards;
    public static int rounds = 1;
    public int cardValue;
    /**When I try to compile this nested class, I get an error message saying I need a brace here and at the end of the program. I don't know if any of this code would work because I've tried adding braces and still can't compile it.**/
    class Hand()
    static int r = 1;
    public Hand() { CardDeck.rounds = r; }
    public int getRounds() { return r++; }
    final class Card
    public static final int ACE = 1;
    public static final int JACK = 11;
    public static final int QUEEN = 12;
    public static final int KING = 13;
    public static final int CLUBS = 1;
    public static final int DIAMONDS = 2;
    public static final int HEARTS = 3;
    public static final int SPADES = 4;
    public Card(int v, int s)
    value = v;
    suit = s;
    public int getValue() { return value; }
    public int getSuit() { return suit;  }
    public int rank()
    if (value == 1)
    return 4 * 13 + suit;
    else
    return 4 * (value - 1) + suit;
    /**This works, but I'm confused. How is this method called? Does it call itself?**/
    public String toString()
    String v;
    String s;
    if (value == ACE)
    v = "Ace";
    else if (value == JACK)
    v = "Jack";
    else if (value == QUEEN)
    v = "Queen";
    else if (value == KING)
    v = "King";
    else
    v = String.valueOf(value);
    if (suit == DIAMONDS)
    s = "Diamonds";
    else if (suit == HEARTS)
    s = "Hearts";
    else if (suit == SPADES)
    s = "Spades";
    else
    s = "Clubs";
    return v + " of " + s;
    private int value; //Value is an integer, so how can a
    private int suit; //string be assigned to an integer?
    }

    Thank you so much for offering to help me with this Jamie! When I tried to call change value using:
    Card dealer = (d.changeValue());
    I get an error message saying:
    Incompatible types found: int
    required: Card
    I had my weekly class last night and the professor cleared up a few things for me, but I've not had time to make all of the necessary changes. I did find out how toString worked, so that's one question out of the way, and he gave us a lot of information for adding another class to generate random numbers.
    Again, thank you so much. I really want to learn this but I'm feeling so stupid right now. Any help you can give me about the above error message would be appreciated.

Maybe you are looking for

  • Why will CS4 not open DNG files converted from Olympus E-M1 raw files?

    For several years I have been able to use the DNG Converter to convert .ORF raw files from my Olympus E-M1 and then open them for processing in CS4. Suddenly CS4 quit recognizing these DNG files saying "Photoshop could not complete your request becau

  • How to add non English characters

    I install weblogic 10.3.3.0, SOA Suite 11.1.1.2, and SOA Suite 11.1.1.3 on Windows 2008 (English version). The Location of Regional and language option is set to local place. I also add non-Unicode. I can add new holiday rules using non English chara

  • Facebook Greetings for All Toshiba Users

    Hey everyone, I just wanted to advertise for all Toshiba users, fanpage on fb which is created by one of the authorized service. We will try to answer on all of your question, fix a parts for you if it will be needed or extend your warranty :) Check

  • Too many recipients found for message type ORDERS in the ALE model

    Hi all , please help me to solve this issue . i done with ale settings . orders message type is used in 2 different model view for 2 different systems when i create po it is giving error in output  "Too many recipients found for message type ORDERS i

  • Preventing Form Calc Runtime Error Message Dialog

    When there is an runtime error in a script written in JavaScript, Adobe Reader "swallows" the error (if it is not caught). I mean, it may write the error to the console, but the user isn't warned of the fact, through a message box. So, for the user,