Javascript: Can't get background source

I'm trying to create script that will allow the user (on mouse over) to choose from one of a several banners to appear while they are on site.
First I'm not sure if my logic is correct, and that is a simpler way. but here is what I got
the CSS loads a default image.
background-image:url(/images/banner.png);
I'm trying to get the source (url) of what is/will be currently up there so I can compare it and place a differnt banner in
I've seen it when the image is placed into a tag, I just can't figure how to get it from css
Can anybody Help

The problem I have now with not using CSS is having all the other pages
load with the same banner.
JavaScript Cookies do this for you.  A cookie script will capture the user's selection and pass it to other web pages.
http://www.quirksmode.org/js/cookies.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com

Similar Messages

  • How can we get the source of the page which is loaded on the browser using

    Dear Sir,
    How can we get the source of the page which is loaded on the browser using javascript
    What is the exact path to get the source object in JS?
    thanks & regards,
    Sudheesh - INDIA

    um... the document object?

  • How can i get the source code from java concurrent program in R12

    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    Zulqarnain

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • 903/902/BC4J can't get data-sources.xml conn pooling to work in production; help

    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml.
    Have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from my BC4J ears,
    and published the jndi jdbc source in my oc4j common data-sources.xml. I've tested that this is
    the place controlling the conn URL/login passwd by commenting it out of config/data-sources.xml
    and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    I've run another test using local data-source.xml, that's packaged in the .ear. Still
    pooling under BC4J doesn't work??
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • How can I get the source code of the google chrome ios app

    How can I get the source code of the google chrome ios app

    Google is your friend
    http://www.chromium.org/
    and
    https://developers.google.com/chrome/mobile/docs/iosoverview

  • Where can I get the source code of the jconsole in jdk1.5

    Where can I get the source code of the jconsole in jdk1.5?

    Hi,
    The JConsole 5 source code is not publicly available but you can get JConsole 6/7 source code from http://openjdk.java.net.
    Regards,
    Luis-Miguel Alventosa - JMX/JConsole dev team - http://blogs.sun.com/lmalventosa

  • Where can I get the source for boot of netinstall CD

    Sorry for the title, I wasn't able to write it out fully due to length constraints.
    So in an attempt to fix https://bbs.archlinux.org/viewtopic.php?id=139659 on my own, I thought I'd go and look at what the install CD does as it is booting up the version of Linux found on the netinstall CD.  It first creates a Linux environment where you can then run AIF.  I mounted and looked through the .iso of the installer that I used, but I couldn't find any useful config files for the boot process, so I'm thinking that it is in a binary form. I found the AIF source code, but that is for after the system boots up from the CD, and my problem happens before then.
    So where can I get the source code for the live CD portions that *aren't* AIF?

    It's a hybrid ISO, with a filesystem and a MBR slapped onto it which you can either write to a CD or "dd" to a HDD or USB stick.
    The bootloader is called ISOLINUX (which is part of the Syslinux project). You can find the "boot" files in the "isolinux" folder. For studying ISOLINUX itself, you have to shimmy on over to the Syslinux website. It's an awesome project. I ditched GRUB 2 for it and now use it as my primary bootloader. Much, much easier to work with.
    Last edited by DSpider (2012-04-16 16:45:21)

  • I can't get background audio to work in garage band 1.3 ios6.1 .also no options in settings to turn it on?

    I can't get background  audio to work in garage band 1.3 iOS 6.1 also no option in settings to turn on or off?

    I had the same problem, try this:
    In your home directory, go to Library/Caches/
    (make sure you are in the library in your home directory, not the library at the root level of the hard disk).
    and remove this file: com.apple.audiounits.cache
    You can drag it to your desktop if you like or throw it away.
    Then relaunch garage band, it will rescan all audio units.
    If you have the Kontakt audio unit installed in YourHardDiskName/Library/Audio/Plug-Ins/Components it should recognize it and include it in your list. You can toss that cache file any time you want Garage Band to rescan your audio units.
    I had a problem with Kontakt on an upgrade that broke it, GarageBand saw it and put Kontakt on its list of broken Audio Units, it would never load it after that... after a new rescan, it was fine.
    Good luck

  • How can I get HTML source code of dynamic Web page ?

    Hi,
    I would like to write a program that can get HTML source code of some Web pages, but there are some dynamic Web pages that I can't do it with URL class. For example: http://www.europlex.ch/web/3schedule/showAll.jsp?context=schedule.
    Thank you very much for any solution.

    Thank you for your attention. I'm sorry because I could't describe it clearly. If you don't mind, please follow this step to understand my problem:
    In the browser, enter URL: http://www.europlex.ch/web/main.jsp?locale=_english
    Click on Schedule, you will see the page with Cinema name, Film, Time... I would like to write Java Program to get HTML code of only this Page (Not frame page).
    Do you have any idea ?
    Thanhks,

  • Javascript can't get parent frame's dom

    the code like this:
    <pre><nowiki>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    </head>
    <input type="hidden" name="username" id="username" value="" />
    <frameset id="MainFrame" cols="0,0,*" border="0" frameSpacing="0" frameborder="no">
    <frame id="left" name="left" src="left.php" noresize scrolling="no" style="padding-left:20px;">
    <frame id="action" name="action" src="right.php" noresize scrolling="no">
    </frameset>
    </html>
    </nowiki></pre>
    does firefox will omit the code:
    <pre><nowiki><input type="hidden" name="username" id="username" value="" /></nowiki></pre>
    so when i in left.php or right.php can't get the input value?

    A good place to ask questions and advice about web development is at the MozillaZine Web Development/Standards Evangelism forum.
    The helpers at that forum are more knowledgeable about web development issues.
    You need to register at the MozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Can i get the source code of jvmti function?

    Is there any way to get the source code of jmvti function? or jni
    if you know. please tell me.. thank you.

    You could get the source for Mustang (Java 6)
    https://mustang.dev.java.net/

  • Why Javascript can't get value in Struts?

    I have a button in Struts,when click this button,it will show a value in Struts,like follows:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="form" %>
    <script language="JavaScript">
    function a(){
    alert(username.value);
    </script>
    <form:form action="/register">
    UserName:<form:text property="username"/><br>
    enter password:<form:password property="password1"/><br>
    re-enter password:<form:password property="password2"/><br>
    <form:hidden property="abc" value="3"/><br>
    <form:button property="button" value="Test" onclick="a()"/>     
    <form:submit value="Register"/>
    </form:form>
    But when I click Test button,it can't show the value of parameter "username",why? How to show the value of it?
    I have a another question,how many attribute of the taglib <form:>? Is there a document for it?
    Thanks!

    But when I click Test button,it can't show the value of parameter "username",why? How to show the value of it?
    Paz>>
    <script language="JavaScript">
    function a(){
    alert(document.forms[0].username.value);
    </script>I have a another question,how many attribute of the taglib <form:>? Is there a document for it?
    Paz>>
    http://struts.apache.org//struts-doc-1.1/userGuide/struts-html.html

  • Can't get JSF sources from CVS

    I'm trying to download the correct version of JSF to debug a problem I'm having with JSF in Glassfish. I'm using GF v2 b41c, which states that it uses JSF cvs tag: JSF_1_2_GFINT_B17. (See http://wiki.java.net/bin/view/Projects/GlassFishSourcesBundle.)
    When I try to use CVS to get JSF, I get the following error msg:
    "User rickhoro doesn't have <VersionControl - Read> access to project javaserverfaces-sources"
    I'm using the following setup for CVS in NetBeans 5.5.1, but I get the same response with a CVS client.
    Access Method: pserver
    User: <my username>
    Host: cvs.dev.java.net
    Repository Path: /cvs
    Module: javaserverfaces-sources
    Branch: JSF_1_2_GFINT_B17
    Do I need to request access from somebody? I find this strange -- JSF is open source now, correct? Why isn't it available?
    Please help.

    Thanks for detailed info, but still no solution here.
    I downloaded the 1.2_04-p01-b10 source and added the src folders to the Sources tab of the Glassfish v2b41c server in NetBeans 5.5.1.
    I'm using Seam, so I put a breakpoint in SeamPhaseListener.beforePhase(). When I click on the LifecycleImpl.execute() or LifecycleImpl.phase() in the Call Stack tab (of NB) the program counter (ie. cursor) appears on the wrong line -- about 8 lines off from where it should be: (see the following)
                    while (listenersIterator.hasNext())  {
                        PhaseListener listener = listenersIterator.next();
                        if (phaseId.equals(listener.getPhaseId()) ||
                            PhaseId.ANY_PHASE.equals(listener.getPhaseId())) {
                            listener.beforePhase(event);   [SHOULD BE HERE]      
            catch (Exception e) {
                if (LOGGER.isLoggable(Level.WARNING)) {
                    LOGGER.warning("phase("
                                   + phaseId.toString()  [SHOWS UP HERE INSTEAD]
                                   + ','
                                   + context
                                   +
                                   ") threw exception: "
                                   + e
                                   + ' '
                                   + e.getMessage()
                                   +
                                   "\n"
                                   + Util.getStackTraceString(e));
                }I assume that these JSF sources do not match the binaries used by this Glassfish implementation. Is there any other reason I would be seeing this mismatch? Makes it pretty near impossible to debug the problem. Please, I would really appreciate further help here.
    Thanks very much,
    Rick

  • Where can I get the source code for sun classes?

    Hello,
    When ever you download sun's j2sdk, the archive always contains the source code for the entire sdk in a zip file called src.zip except the sun.xxx classes like sun.awt.print.PrintDialog or sun.awt.font.FontResolver.
    For debugging purposes I need, if availabe, the source code of these classes which are not present in the src.zip.
    Please can someone tell me if theses classes are available as source and can point me where I can find it cause I am searching for it but can't find it on the net.
    Thank you
    Carolin

    Hey ChuckBing
    And your way is the only way, right? No.What on earth is eating you? Highly sensitive today?
    Where is the problem? There are two solutions of the question.
    The one link I posted points directly to the sun source download link. The "readme" explains, yippie, the sun sources are contained. Easy, isn't it?
    With the other one, you have to navigate at least through two other pages before you might find the link and only if you recognize that "Download JDK 5.0 source via SCSL/JRL" means the sun source code and not the sources contained in the JDK download. This is what I thought as I've seen this link the first time. Unfortunately there is no "readme".
    I prefer the easy way, I dont want to earn a doctorate. Ok, you can say dont "play the woman", but I'm a woman and a blonde too;-)
    But, let us stop the idle discussion here, please!
    Nevertheless, thanks to you and [email protected] for answering.

  • Where can I get the source code of Text Layout Editor?

    Hi, Guys:
    I just want to design horizontal or vertical rulers that are exactly same as the one I see in the Text Layout Editor.
    Please see the url: http://labs.adobe.com/technologies/textlayout/demos/
    But I cann't download any source code. Does anyone know if it's possible to get it? Thanks.

    And now it is possible: http://blogs.adobe.com/tlf/2009/12/new-and-updated-tlf-samples.html

Maybe you are looking for

  • Web Service - XMLA - question

    Hi Experts, based on Prakash Darji's blog I made XMLA working in development environment. In prakash's code we can see out put in HTML format. Due to following code. // Execute the SOAP request      objXMLHTTP.setRequestHeader ("SOAPAction", action);

  • How to create a popup window that allows creation - - -

    Hi, I have a column named owner_id(number) . My requirement is to display the owner name and in the future I want to allow creation of a new owner from this page, .So i have used an [ Popup Key LOV (Displays description, returns key value)] for the t

  • Will the motorola H620 Bluetooth work with the Iphone 5?

    Will the motorola H620 Bluetooth work with the Iphone 5?

  • 3D animation

    Hi guys! Just have a quick question about the above subject. I want to create a short 3D animation (i think) and not too sure how to do go about it? i know i cant do this in FCE, but i know there are programs about which can... what i want to create

  • Cannot find reset button to reset PMU

    My iBook will not boot up, I had to do a hard shut off after it locked up on boot and now it won't start at all. The apple documentation shows a reset button on the left hand side of the case but I cannot find it. It's the semi-translucent version of