CSS/JavaScript - need of genius

Hi all

Need help with a css/javascript functionality. When rolling over a table cell, I need to change the background image for the table.

Can someone help me pls pls out there with this function... Thank you.

> For the entire table?

With just the CSS:

If the td is NOT a child of a tbody tag (it is interesting to note that the)
tag tbody is not implied, but at least in IE7 and FF2 on a PC, it is not)
This will not work:

onmouseover =
'this.parentNode.parentNode.style.backgroundImage = 'url (foo.gif)'.

and if the td IS a child of a tbody tag then this:

onmouseover =
'this.parentNode.parentNode.parentNode.style.backgroundImage = 'url (foo.gif)'.

--

E. Michael Brandt

www.divaHTML.com
divaPOP: windows popup to standards
divaGPS: you-are-there menu highlighting
divaFAQ: FAQ pages with pizazz

www.valleywebdesigns.com
JustSo PictureWindow
JustSo photo album

--

Tags: Dreamweaver

Similar Questions

  • How can I use external CSS, JavaScript and Images in the PeopleSoft Portal?

    I develop a website and I need to put my CSS, JavaScript and IMG files in a folder on the server that can be used by the objects of my HTML.

    Where should I put the images? How can I get the HTML code of the objects can read these images?

    I tried several things like:

    < link rel = "stylesheet" href = "" < % = psCtxPath % > < % = psHome % > \MyStyleSheet.css "rel ="stylesheet"type =" text/css">"

    "< link rel ="stylesheet"href="\portal\MyStyleSheet.css "rel ="stylesheet"type =" text/css">

    "< link rel ="stylesheet"href="\ps\images\portal_pa\MyStyleSheet.css "rel ="stylesheet"type =" text/css">

    By "Object HTML" do you mean HTML definitions in App Designer? If so, how you use these HTML definitions? You use the PeopleCode GetHTMLText? You want to store your images and CSS in the database where it won't delete whenever you regenerate PIA (Tools fixes and upgrades)? If the answer to all these is Yes, use %Bind(:1) (or: 2: 3, etc.) for your images, JavaScript and CSS. In your PeopleCode, use % Response.GetImageURL (IMAGE.NAME_OF_YOUR_IMAGE), Response.GetJavaScriptURL (HTML.NAME_OF_YOUR_JS_DEFN), %Response.GetStylesheetURL(STYLESHEET.) YOUR_CSS_NAME) to obtain the URL of the item stored in the cache. Pass this URL to the GetHTMLText function as the value for one of bind variables in the HTML code.

    If you put images in the folder root (PORTAL.war) of your web server, and reference to ' / '. If you put them in a folder under PORTAL.war, for example, a folder named ps, use/ps/nameoffile.png. Always use ' / ', not '-' for internet URLS.

  • HTML + css + javascript is enough? Another example of application?

    Hello!

    To accept that my application is sufficient to write in html + css + javascript? like normal Web site?  or I have to use other tools?

    Where can I find another example of application? not "SketchPadStandard"?

    What types of applications rejected RIM?

    I don't know about "The Applications that provide a simple, unique, function as play sound or display a graph."

    but some other advice?

    BTW: I use the command line to create a * .bar, compile and run my application on the Simulator, but y at - it tool that will speed up this process?

    Sorry for the many questions in one thread, rookie mistakes

    Greetings!

    @kubaczento, this is the forum for the development of the AIR.  If you look at the works of the Web (HTML, etc.) you should head to the course on Web development forum which is side to it...

  • How the file CSS &amp; JavaScript work in APEX

    I'm new to the concept of CSS and Javascript.

    I have after the query.

    1. I have to set my standard application in terms of font size, color, etc...
    What is the best way to do it... should I create a CSS file, and put all my styles out there and then use them in all the
    Pages using the entire application.

    2. it is by default we have one CSS file for each theme, that is to say CSS file of specific theme or application specific, if I want to
    create my own css file it will be ovveride the default. [can we have more than a single css file in an application]

    3. How can I see the APEX default CSS file.

    4. regarding javascript, where should I define javascript functions, if I use this func in most of the pages with the application.

    Someone can also me proven documentation link for - How to use CSS and Javascript in APEX.

    Thank you
    Deepak

    Hello

    In fact, I don't know why you use WORKSPACE_IMAGES instead of APP_IMAGES - what is just like that! This does not mean that other applications will automatically get the style sheet, as this would occur only if you have linked to the style sheet in their page designs

    Apex javascript and theme css files must be stored in the server your /images/ folder structure. If you use FireFox and the developer toolbar, you can use this to see the contents of the file. There is probably something similar in IE, but I only use too, so not sure what that snap would be ;)

    For multiple files, this shouldn't be a problem. For javascript files, the only question would be if you named one of your functions exactly the same as in the scripts of the Apex. In this case, it is likely that the second function would be used. There may also be a small problem with the names of variables (for example, var x ;) set outside the funtion blocks as you cannot set these two times.

    For files css, normal css rules apply when there are multiple instances of the same style - see: [http://www.w3.org/TR/CSS2/cascade.html#cascade]

    Basically, if you have:

    .x {color:red; border:1px solid blue;}
    

    followed by:

    .x {color:black; background-color:yellow;}
    

    True style applied the class name 'x' would be:

    .x {color:black; background-color:yellow; border:1px solid blue;}
    

    but, if you still want red text, you can override this by updating the first statement above to:

    .x {color:red!important; border:1px solid blue;}
    

    so, the result will be:

    .x {color:red!important; background-color:yellow; border:1px solid blue;}
    

    Note also that, if the class name of 'x' has been applied to a TD tag, and you have the following style somewhere:

    TD {font-size:12pt;}
    

    This would also apply, so the result would be:

    .x {font-size:12pt; color:red!important; background-color:yellow; border:1px solid blue;}
    

    This means that if, for example, you used the theme 1 of your application, you can override any of the styles using the style sheet of the theme with one of your own to apply a style to the class a topic 1. Tell him you want to change the style of t1Header of the theme used on a Standard report - you only need to do:

    .t1Header {background-color:pink}
    

    It is better not to override the styles that style a tag type (as in the example above of TD) as they apply to all the instances of this type of tag in the page - and this can cause unwanted results. If possible, stay with class names or ID values: for in a style class names, add a point in front of the name (as shown in the examples above for the class 'x'); for the ID values, use the symbol # (for example, #P1_ITEMNAME).

    All other styles for t1Header will remain the same and, more important still, you don't have to recreate every single style in the theme just to make this change.

    Finally, you can have as many javascript and css files as you wish. Each page template could bind to any of these, if you do not have to include all of them on each page - only those which are necessary for this model.

    Andy

  • Add link to the text of the css/javascript gallery

    I have several galleries of pictures generated by using css and Dreamweaver the text value of the container behavior.  I would like the text that appears under each of the large pictures to contain a link, but the link breaks the script.

    This is one of the pages: the many faces of Lene Lovich: 1979-2006

    Looking at the code for the second image, add in the code highlighted in red below does NOT work.

    Does anyone know how to do this?

    < a href = "" javascript:; "onclick =" MM_setTextOfLayer ('2334' ",' < p > < img src = & quot;jpg/Lene-Lovich/galleries/1979-2006/15LampPost.jpg & quot; alt = & quot;) Lene Lovich at Highbury Fields & quot; / > < br / > < span style = & quot; do-size: 14px; & quot; > photo: Chappell </span > < br > we took this < a href = 'www.google.com' >at the time of Flex< /a >, late into the night under the pure Street-lamp light at Highbury Fields, Northeast London.  I don't remember the exposure time, but it was very long. < br > was the cold weather? I wore a lot of curtains at this time. Never had any clothes, just a caseful of bits found everywhere where I was. (< br > - Lene Lovich < /p > ') ">"
    "< img src="jpg/Lene-Lovich/galleries/1979-2006/15LampPost.jpg "alt = 'Lene Lovich at Highbury Fields' height = '80' border ="0"class =" thm, exclude "title ="Click to enlarge">
    < /a >

    Try to replace the double quotes by "" "" "

  • How to save a copy of the file? (simple javascript needed)

    I'm a noob, so need a Javascript/installation for InDesign CC script, which runs automatically when a file is openand saves a copy of the document to a specific folder, to the present time (i.e. "c:/file/filename_COPY_6_MAY_2014_23_59_59").

    This code is just for this work? :

    var dmd = app.activeDocument;
    var oldDocName = dmd.name;
    //make new file
    var newDocName = oldDocName.substring(0,oldDocName.length-5); //removes ".indd"
    var dd = new Date;
    var NewFile = new File("/c/backups_folder/" + newDocName + dd.getDate() + "_" + dd.getMonth() +  "_" + dd.getHours() + "-" + dd.getMinutes() + "-" + dd.getSeconds() +".indd");
    //copy
    oldDocName.copy(NewFile);
    
    
    
    
    
    
    
    
    
    

    Hi all

    I don't think that the link you have provided on stackflow meets your problem and certainly not the best way.

    Hopkins response for sure does not seem be correct (sorry)

    I think that my script below is the best method.  Don't lead to annoying delays in file open.

    Put it in your startup script file

    Trevor

    // https://forums.adobe.com/message/6363852#6363852
    // By Trevor
    #targetengine document_copy
    (function () {
        if (app.eventListeners.itemByName ("saveCopy").isValid) app.eventListeners.itemByName ("saveCopy").remove(); // makes debugging easier and prevents multiple eventListener creations
        var mySaveCopyEventListener = app.eventListeners.add("afterOpen", saveCopy);
        mySaveCopyEventListener.name = "saveCopy";
    }) ();
    
    function saveCopy(ev)  {
        if (ev.target.constructor.name !== 'Document') return;
        saveCopy.Folder = "C:/backups_folder/"; // Change as needed
        if (!Folder (saveCopy.Folder).exists) {
            Folder (saveCopy.Folder).create();
            $.sleep(300);
        }
        if (!ev.fullName.copy (new File (
            saveCopy.Folder + // folder name
            ev.fullName.name.replace(/.[^.]*$/,"") + // file name without suffix
            (" " + new Date).replace (/:/g,"\xB7").replace(/\s\S+$/,"") + // date Change format as desired
            (ev.fullName.name.match(/\..+$/) ? ev.fullName.name.match(/\..+$/).toString() : ".indd") // suffix could be idml or who know what
            ))) alert ("Something messed up, a copy was not made");
    }  
    
  • Completely new to CSS coding need help soz...

    Hey there im a graphic I usually only Web sites and then sell them, but I need to start coding the myself to increase my money. (if someone cared lol) till now im getting the hang of it, but ive hit a bump in the background. the size of the background is 2200 px by px 1100 when I load the background in his also if Weaver of dream zoomed in and also on the preview in chrome its zoomed in how do I get the middle to be of normal size. Here's my CSS code:

    @charset "utf-8";

    / * CSS document * /.

    p

    {

    color: Red;

    }

    Body {background-image: url(images/background.jpg) ;}}

    It's a huge background image.  Most site visitors won't see it because it is larger than most of the screens.

    Google labs - the browser size
    http://browsersize.googlelabs.com/

    Middle office/computer laptop users have a browser window between 900px wide and 1280px wide.

    iPhone/iTouch users have a screen is 320px wide (portrait) or wide (landscape) 480px.

    the iPad/tablet users have a screen that is 768px approx. scale (portrait) or 1024px wide (landscape).

    You should be creating web pages with in mind all of these devices.

    http://ALT-Web.com/templates/CSS-centered-round-boxes.shtml

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • Basic Dreamweaver, CSS. Need help to start, where to start?

    Hi all

    I'm relatively new to web design and dreamweaver - I took a class for more than a year and remember some of the basics, but it must be put to the test now. My boss asked to update the company's Web site, and I need to know the best way to go about it.

    I know that the original site was created with dreamweaver - I have a .css file (which, if I remember corectly, is the file I open really with dreamweaver, right?), as well as the additional files/folders. The problem, however, is that the company's computers is not dreamweaver on it, and my laptop - which does not have the program - has no access to network drives, where the files are located.

    Can I just transfer the files from the network drive > zip drive > my laptop and then work on the site from here? If so, what file I actually would open in dreamweaver - the .css?

    If it is against the use of my own laptop good and that they are, can I update the site using an open-source program? If so, any recommendations?

    I know that these are fundamental issues, but once I started I know I'll be good to go. Thanks for any help, we appreciate it!

    As I said before, Dreamweaver is a program based on the site. The basic idea is that you create an exact copy of the live site on your local hard drive. Make the changes or to create new pages in your Dreamweaver site. When you are satisfied with the way in which the pages locally, you connect to the live server and download new or updated files up-to-date. That's all.

    If you create a new file or new file, Dreamweaver creates copies of these files and folders on the server if you select in the files Panel, and then click Put icon (which looks like an arrow pointing upwards). As long as the root of the site in your Dreamweaver site definition contains the files and folders in the same hierarchy on the online site, everything will be transferred to the right place. The root of the site is the top level of the site. Let's say that the home page of your site is http://www.example.com/index.html, index.html must be in the root of your Dreamweaver site. If you have a page at http://www.example.com/products/widgets.html, widgets.html must be in a folder called products inside your Dreamweaver site root.

    The principle works with Dreamweaver is very simple. Simply, it stores a local copy of the site. The difficult part is the design of the site and style it with CSS.

  • CSS serious need help please (shadows... again)

    I think I'm about to cusp to figure out the shadow thing any drop - but I could use some insight and advice to end up and take my understanding to the next level. Please take a look at http://www.quintandquint.com/shadowtest/shadowtest.html and help me understand the following (note that each div background colors are defined the way they are just so I could easily distinguish the components):

    1. How can I fix the foot so that it is not extending beyond the shadow on the background?
    2 - is the way I put it in place to the shadow go deeper/more short based on the depth of the content of the page?
    3. how to compensate the content until the shadow more shows?
    4. How do I say all of this broader - 885 pixels?
    5. what I would need to change in order to have the home page have a background color (blue, for example) and all the content have a background color of white?
    6. is superfluous code that I can get rid of to make the pages more simple (and easier to troubleshoot/understand)?

    Thank you very much!!!

    http://www.quintandquint.com/shadowtest/shadowtest.html

    You can certainly do it, but you can also just drop in the content and use CSS
    positioning.

    For example, the images of background shadow didn't really need to go a
    div.. the images could just be inserted here. You can simply drop an image
    anywhere in the layout and the float that image to the left or to the right, with or without
    margins to position it.
    Another example would be an H tag. You do not need a div around it, you can
    just put his margin, background color and so on.

    An example of when you can use a div tag would be if you were to move a group
    paragraphs that you wanted to be red in a container that contains blue text
    already in it.
    You can put this group in a div tag, then apply a class to the div to make
    all the

    tags in this red div. That could help you avoid having to give
    each

    mark a class making it red.

    Take care
    Tim

    "joeq" wrote in message
    News:fonmo3$ora$1@forums. Macromedia.com...
    > fantastic - thank you!
    >
    > one final question: am I right in thinking that adding content to each of
    > sections is as simple as dropping the divs inside each of them existing?
    >
    > Thanks again.

  • I NEED A GENIUS OR BILL GATES TO HELP ME...

    I CAN INSTALL MICROSOFT DIGITAL IMAGE SUITE 2006 IN MY PC... I HAVE TRIED EVERYTHING AND WINDOWS CANNOT RUN OR OPEN FOR ME.
    ALWAYS APPEARS a WINDOW WITH the MESSAGE "Digital Image Module detects a problem and needs to close"
    I tried to download from the internet and it was the same problem.
    I have tried with other types of software, and in this case and everything was ok.
    My cd - dvd driver is the perfect job.
    So my software, my pc or me the PROBLEM?

    Hello Athur,

    The computer with the questions has Windows XP installed and this forum is for Windows Vista. Please visit the following link to get the best answers to issues with Windows XP.

    http://www.Microsoft.com/windowsxp/expertzone/newsgroups/reader.mspx?DG=Microsoft.public.WindowsXP.General

    For Discussion Board, please visit: http://www.microsoft.com/office/community/en-us/FlyoutOverview.mspx

    Thanks and greetings

    Engineer James Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • CSS Javascript XML

    Buenas tardes tengo dudas sad enterarme edge algo some don't animate no tiene continuidad quisiera saber

    If podre hacer things Quebec City toward into el animate edge como

    -Add edición facilmente o Jquery Jquery - ui Greensock EC.

    -librecias css

    -labels html parece solo divertir canvas

    o asignar clases a los elementos

    MIL gracias quisiera saber are the best that trae este producto para abadonar proyecto desde mi punto iba as well ya a simple sin mucho problema than este producto profundizar vista limited y none are very flexible para Programación nor options las siento cuartadas

    MIL gracias thank sus opiniones para concebir mejor tratar este producto

    Yes, you can add and use these libraries with adobe animate published files, but they are not integrated in the animation program.

    That is to say, you must import libraries.

  • Help with a javascript - need the name of the document file name when exporting

    When I run this script:

    var myPresets = app.pdfExportPresets.everyItem () .name;

    myPresets.unshift ("- select preset-");

    var myWin = new window ("dialog", "PDF Export Presets'");

    myWin.orientation = "row";

    {with (myWin)}

    myWin.sText = Add ("' statictext ', undefined, ' select PDF Export preset :');)

    myWin.myPDFExport = add('dropdownlist',undefined,undefined,{items:myPresets});)

    myWin.myPDFExport.selection = 10;

    myWin.btnOK = Add ('button', undefined, "OK");

    };

    myWin.center ();

    myWindow var = myWin.show ();

    If (myWindow == true & & myWin.myPDFExport.selection.index! = 0) {}

    var myPreset = app.pdfExportPresets.item (String (myWin.myPDFExport.selection));

    myFile = lead (File.saveDialog ("save the file with preset:" + myPreset.name, "PDF files: *.pdf"));

    If (myFile! = null) {}

    app.activeDocument.exportFile (ExportFormat.PDF_TYPE, myFile, false, myPreset);

    } else {}

    Alert ("no file selected");

    }

    } else {}

    Alert ("no predefined PDF selected");

    }

    I need to place the filname document automatically when the dialog box "Save as" appears:

    Udklip.PNG

    Can someone help me?

    Use this:

    myPath = app.activeDocument.filePath + '/' + app.activeDocument.name.replace (/\.indd$/, '.pdf');
    myFile = File(myPath).saveDlg("Save file with preset: " + myPreset.name,"PDF files: *.pdf");
    

    Peter

  • Convert all the annotation GotoPage links javascript - need help

    Hi all

    I have a large document and my requirement is to find a set of words and add gotopage link to a particular page (index page). I recently got a file of Acrobat (http://acrobatusers.com/content/find-highlight-words-and-phrases) user group who has find and highlight a set of words using Acrobat action action.

    This action is to "search for and remove text" action that will search for and delete selected text and a javascript to add the highlight of yellow color.

    I changed the javascript code associated with this action in the following so that the script will find all payments made and convert in the Gotopage links and destroy annotations after you create the links.

    I tried these steps in the following code:

    1. Find annotations
    2. Get the four value
    3. SetLink to page
    4. Destroy to delete annotations

    I'm new to javascript and I read the javascript reference as much I could and tried as much as possible. But this script does not work and I couldn't identify what's not in the present.

    Please, help me run this code.

    for (var p = 0; p < this.numPages; p++)
    {
    //var numWords = this.getPageNumWords(p);
    var numWords = this.getAnnots(p,{sortBy:"Author"});
    for (var i=0; i<numWords.length; i++)
    {
    var ckWord = this.getPageNthWord(p, i, true);
    if ( ckWord.type == "Redact")
    {
    var q = this.getPageNthWordQuads(p, i);
    // Convert quads in default user space to rotated
    // User space used by Links.
    m = (new Matrix2D).fromRotated(this,p);
    mInv = m.invert()
    r = mInv.transform(q)
    r=r.toString()
    r = r.split(",");
    l = addLink(p, [r[4], r[5], r[2], r[3]]);
    l.borderColor = color.red
    l.borderWidth = 0
    l.setAction.("this.pageNum = 243");
    }
    }
    }
    var annots = this.getAnnots();
    for (var i = 0; i < annots.length; i++)
    if (annots[i].type == "Redact") annots[i].destroy();
    

    If you want to use the same code, but just a single page (25) research, change this line of code to:

    for (p = 25 variety; p)< 26;="">

    Otherwise, you can remove the outer loop entirely and set the variable p 25 at the beginning of the script.

  • Are there tutorials on html, css, javascript coding?

    I am learning about coding and is all their tutorials?

    A little more online resources for you to your Favorites.

    Republic tutorial - tutorials for Web development online

    http://www.html.NET/

    http://www.csstutorial.NET/

    http://webdesign.tutsplus.com/sessions/Web-design-theory/

  • JavaScript: Need help placing a LayerSet inside and at the bottom of an another Layerset.

    I've been struggling with the syntax to do this for many too long now. Thought I would ask for help. Here's what I'm trying to do.

    Create a Master Layerset

    var masterSetRef = docRef.layerSets.add ();

    masterSetRef.name = "master LayerSet."

    / / Create a new LayerSet (it will be created at the beginning of Master LayerSet)

    var layerSetRef = masterSetRef.layerSets.add ();

    / / Create a new artlayer with text, inside the LayerSet above

    var artLayerRef = layerSetRef.artLayers.add ();

    artLayerRef.kind = LayerKind.TEXT;

    / / Move the LayerSet at the end of the Master LayerSet (I hope)

    layerSetRef.move (masterSetRef.layerSets, ElementPlacement.PLACEATEND);    <- and this fails, no matter how I do it. This is just one example of what I tried.

    Any ideas?

    Louie

    Curious, but as a solution, why not do the two-step move?

    layerSetRef.move (masterSetRef.layers [masterSetRef.layers.length - 1], ElementPlacement.) PLACEBEFORE);

    masterSetRef.layers [masterSetRef.layers.length - 1] .move (layerSetRef, ElementPlacement.PLACEBEFORE);

Maybe you are looking for