Welcome To Script

The Java Script Style Page

Offers

Java Script Style News

Congratulations, you have found a great source for recent news for Java Script Style. Also browse and make use of our other resources.

Exhibit pays tribute to American roots music - News 14

enable JavaScript. Learn how . install Adobe Flash 9 or above ... Terri Cobb, a registrar for the Smithsonian, said the exhibit is a walk back in time and a celebration of styles that left their mark on the country's music landscape. "

Read more


NCHSAA Championship Breakdown: 3A men and women - News 14

enable JavaScript. Learn how . install Adobe Flash 9 or above. Install now . Then come back here and refresh the page. The North Carolina High School Athletic Association men’s and women’s 3A basketball championships will be played Saturday at ...

Read more


VIDEO/PHOTOS: Princess Diana’s dresses, in von Liebig ... - Naples Daily News

If you do not see it in a few seconds, please download the latest version of Adobe Flash Player , or enable JavaScript for your browser ... from a size 4 to 14 during her life, and embraced a variety of styles, from traditional to ultra-chic.

Read more


'Boggy Creek' filmmaker Pierce dies in Tenn. at 71 - The Sun News

DOVER, Tenn. -- Charles B. Pierce, an independent filmmaker whose inexpensively made documentary-style drama "The Legend of Boggy Creek" influenced the hit film "The Blair Witch Project" decades later, has died at age 71. Pierce, who grew up in ...

Read more


Home schooling’s value - Cedar Rapids Gazette

Home schooling is gaining popularity throughout the country, and Iowa is no exception. One of every 17 Iowa students is home schooled. This education alternative is something we support, so long as students demonstrate they’re learning at high ...

Read more


Notorious B.I.G. Remembered By Friends on Twitter - Billboard

Billboard requires a JavaScript enabled browser to get the full experience Thirteen years ago today (March 9), hip-hop lost one of its most beloved and talented MCs: the Notorious B.I.G. Born Christopher Wallace, B.I.G. was gunned down in Los Angeles ...

Read more


Slash Enlists Ozzy, Iggy, Kid Rock For Solo Debut - Billboard

Billboard requires a JavaScript enabled browser to get the full experience As a former member of Guns N' Roses and Velvet Revolver , Slash knows more than most musicians about what he calls "band drama." "It just goes hand in hand with rock 'n' roll ...

Read more


Panthers help inflict drought of epic proportions on ... - Cedar Rapids Gazette

We can play different styles and different circumstances because we have ... IntenseDebate comments , but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Read more


Walking shoes: Features and fit that keep you moving - MayoClinic.com

To use this interactive, you must enable javascript. How a shoe is built makes a difference in its fit and function. Knowing the basic parts of a walking shoe can help you sort through the many available styles and brands. Note: Not all walking shoes ...

Read more


Komodo dragons: luxury cruise in Indonesia - Daily Telegraph

Varanus komodoensis is actually a monitor lizard, the world's biggest, growing up to 12ft long from snout to tail and weighing nearly 18 stone Photo: CORBIS Silolona is an authentic replica of gaff-rigged schooners that plied the Spice Islands trade ...

Read more


Top Java Script Style Results

JavaScript Style Attributes
Listed below are the tables of CSS properties for various HTML element style attributes. I have added a column indicating the javaScript name that the browser recognizes for these ...

JavaScript Kit- Style Object
Click here for a complete JavaScript Reference, including array, string, document. window, and more. Also included are documentation on JavaScript operators, statements, loops ...

The Elements of JavaScript Style
The if statement is being used to select one of two values. This is what the ?: ternary operator is for. zv = d.w.sv.checked ? 'on' : 'off';

JavaScript-Based Style Sheets
Overview of Netscape's proposed JavaScript based style system. Historical.

Modifying Styles
Older browsers, such as Netscape’s Navigator 4 series, had relatively poor support for modifying Cascading Stylesheets from JavaScript—instead requiring that you use either ...

Other Java Script Style Results



Voting Question: how to add java to cs4?

ok so im starting to realise im going to have to learn java script, and quickly if i want my website to be half descent. however while I'm doing that I have cheated a little, i downloaded a little applet that does all the hard work for me, just for the one function of creating a sideways moving banner that I can put .gifs in and make them links! Hurray! i love you people for that! many thanks! however.... due to lack of instructions, after i use this lovely little program it creates for me a few .js files and if im smart and save them into my .HTML folder of my website they appear on my CS4 work space! Now to the question...... how on earth do i get the javascript to run? there are two files, one is called image slider cfg and the other is image slider.. also, it comes with a .css that has two style sheets .container .images. ok so my understanding of css is ok i have worked with it for a few weeks now. so far i have put the container where i wanted it on the page, put the images in the images part and tested.. all that happened was a brokenblue banner in the container div and and alot of pictures in the div i created for the other style sheet.. i copied both files of .js into the HTML randomly in the header, and tested it in the body... epic fail both times, so i decided to ask you! can you help me add this please? more

Resolved Question: i am doing a small business application in jsp?

In the following coding if i click the radio buttons i want to display two seperate tables for both processor and keyboard details on the same page.Iam able to get the radio buttons on the screen but if i click the radio buttons it does not display the respective tables.please help me with it. i have attached the coding the coding below please help me what is the problem with it. <html> <%@ page language="java"%> <%@ page import="java.sql.*"%> <%@ page import="java.io.*"%> <%@ page import="java.lang.*"%> <%@ page import="java.util.*"%> <body> <form> Processor specifications <input type="radio" name="pro" value="radio1" onClick="ButtonClicked()"/><br><br> keyboard specifications <input type="radio" name="key" value="radio2" onClick="ButtonClicked1()"/><br><br> </form> <% try{ Connection c= null; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String user = ""; String password = ""; c=DriverManager.getConnection("jdbc:odbc:online","",""); Statement s=c.createStatement(); %> <script> function ButtonClicked() <% { ResultSet rs=s.executeQuery("select * from pro"); %> <table cellpadding="15" border="1" style="background-color: #ffffcc;"> <% while (rs.next()) { %> <tr> <td><%=rs.getString(1)%></td> <td><%=rs.getString(2)%></td> <td><%=rs.getString(3)%></td> </tr> <% } rs.close(); } %> </script> <script> function ButtonClicked1() <% { ResultSet rs=s.executeQuery("select * from key"); %> <table cellpadding="15" border="1" style="background-color: #ffffcc;"> <% while (rs.next()) { %> <tr> <td><%=rs.getString(1)%></td> <td><%=rs.getString(2)%></td> <td><%=rs.getString(3)%></td> </tr> <% } rs.close(); } %> </script> <% s.close(); c.close(); } catch(Exception e) { System.out.println("cant connect database"); } %> </body> </html> more

Voting Question: Why is this form field not showing up in results email? (php/java question)?

I have a form with a hidden field that becomes visible when user clicks a specific checkbox. The problem is that the user input from this hidden form field is never included in the form results email. I am using Javascript to perform the show/hide tasks...... relevant code below <script language="JavaScript"> function showhidefield() { if (document.frm.systemtype_f.checked) { document.getElementById("hideablearea").style.visibility = "visible"; } else { document.getElementById("hideablearea").style.visibility = "hidden"; } } </script> </head> <form action="action_post.php" method="POST" name="frm" target="_self"> <input type="checkbox" checked="checked" name="systemtype_a" value="ac">A/C System <input type="checkbox" name="systemtype_h" value="heatpump">Heat Pump <input type="checkbox" name="systemtype_f" onclick="showhidefield()" value="furnace">Furnace <div id='hideablearea' style='visibility:hidden;'>Furnace type: <select name="fur_type"> <option value="electric">Electric</option><option value="naturalgas">Natural Gas</option><option value"propane">Propane Gas</option></select></div> <br /><b>Preferred project completion date:</b>     <select name="completion_date"><option value="flexible">Flexible</option><option value="1_week">Within 1 week</option><option value="2_week">Within 1-2 weeks</option><option value="3_week">More than 2 weeks</option></select><br /><br /><br /><br /><br /> <b>My Zip Code: </b>     <input type="text" style="font-size:14px" size="5" name="zip" maxlength="5" />   </div> <center><input type="submit" value="Give me my 3 estimates!" /></center> </form> All other user entered variables show up correctly on the results email. I am only having problems with the $fur_type select box. Please help. more

Resolved Question: Web Design Help! Fifty Minutes Left To Answer!?

Which of these Web page elements are commonly created with JavaScript? 1. Interactive images 2. Background colors 3. Expanding menus 4. Games 5. Thumbnail images 6. Style rules A friend tells you he wants to make a Web page where the images change when the mouse pointer points to them. You tell him those are called _________________ images. A. Thumbnail B. Mouse C. Pointer D. Rollover You want to add a JavaScript function to the <head> section of your page. What tags will you use to tell the Web browser that you are using JavaScript? A. <script> tags with a type attribute B. <java> tags C. <style> tags with a type attribute D. <function> tags You want to add a JavaScript function to your page that creates a dialog box. What function will you use? A. alert() B. Date() C. onmouseout D. onmouseover You have typed the following code, but when you view the page in your browser, the alert() message is cut off after You. How can you fix the problem and show the entire message? A. Take out the quotation marks inside the parentheses. B. Take out the semicolon. C. Add a backslash \ before the apostrophe in You're. D. Delete the href attribute. Any elp would be greatly appreciated. Thank you in advance! more

Voting Question: Emergency with PHP help?

I was working on the <head> section of a PHP based site. I don't know PHP or Java just CSS and HTML, but the change I was making seemed small. I downloaded a file, made a backup, made a small change to one line of code and uploaded the file to my site. It didn't work so I uploaded the backup I made of the original. Now when I go on my site all I see is a white screen. Would you please look at the code below and tell me if there is something in it that I screwed up? <head profile="http://www.w3.org/2005/11/profile"> <title> Articles </title> <link rel="stylesheet" type="text/css" href="../styles/myadmin.css" media="screen" /> <link rel="stylesheet" type="text/css" href="../styles/forms.css" media="screen" /> <link rel="stylesheet" type="text/css" href="../styles/dialog.css" media="screen" /> <script language="JavaScript" src="../js/global.js"></script> <script language="JavaScript" type="text/javascript" src="../js/validation.js"></script> <script language="JavaScript" type="text/javascript"> <!--// validates a form, displaying errors next to fields (specific to each document) function validateForm(form) { var valid = true; ResetValidation("span"); switch(form.name) { case "add": if (!IsPosInt('page')) { ShowInvalid('page_error', '* Must be a positive whole number.'); valid = false; } if (!IsNotEmpty('title')) { ShowInvalid('title_error', '* Cannot be empty.'); valid = false; } if (!ValidEmail('authorEmail')) { ShowInvalid('authorEmail_error', '* Not a valid email address.'); valid = false; } break; } return valid; } //--> </script> </head>Sorry the whole thing is too long to post on here. As for the small change I made, I added one line of Java to the <head> section and then took it out. Maybe people could recommend a good support forum for this kind of thing? more

Resolved Question: Java Script, selecting multiple ID's?

In the snipper of javascript below, I have asked for "midcol", how would i go about asking for "rightcol" aswell as the current "midcol"? would it be somthing like; var div = document.getElementById("midcol"AND"rightcol") ? SNIPPET BELOW: function changemysize(myvalue) { var div = document.getElementById("midcol"); div.style.fontSize = myvalue + "px"; document.cookie="mysize=" + myvalue; } Many thanks. more

Resolved Question: How to display an XML table in a HTML page using only an XSL?

I have successfully created an XML table using a XSL style sheet for the display. Now a part of my task is to import that table into a HTML file using only and only XSL... I know it can be done using java Script but how can I use XSL? any code? more

Resolved Question: Help with Java? (drop down menu)?

The menu doesn't stay after I remove my mouse from the main link. I was told I need a timer. This is what I have so far (excluding the links): <html> <script type='text/javascript' language='javascript'> function getY( oElement ) { var iReturnValue = 0; while( oElement != null ) { iReturnValue += oElement.offsetTop; oElement = oElement.offsetParent; } return iReturnValue; } function getX( oElement ) { var iReturnValue = 0; while( oElement != null ) { iReturnValue += oElement.offsetLeft; oElement = oElement.offsetParent; }/; return iReturnValue; } function ShowDropDown(oMenu, oSource) { oMenu.style.left = getX(oSource); oMenu.style.top = getY(oSource) + 30; oMenu.style.display = 'block'; //alert("is it there?"); } function mopen(id, ele) { // cancel close timer mcancelclosetime(); // close old layer if(ddmenuitem) ddmenuitem.style.display = 'none'; ddmenuitem = document.getElementById(id); } // close showed layer function mclose() { if(ddmenuitem) ddmenuitem.style.display = 'none'; } // go close timer function mclosetime() { closetimer = window.setTimeout(mclose, timeout); } // cancel close timer function mcancelclosetime() { if(closetimer) { window.clearTimeout(closetimer); closetimer = null; } } </script> more

Voting Question: CSS Styles and how to use them?

I am learning Html and Java Script and have not Long started. As a way to learn we have been told to build are own website. I have gathered together information and images and even videos for my website but need some sort of CSS styles. How do I create CSS styles and put them into my website. I have done everything so far in Notebook/pad. Also do I need different style for each section of my page? If someone doesn't mind me emailing them to for help it would be appreciated. Thanks Rick more

Resolved Question: HTML, JAVA. I want to add a picture. How do I do it? Thanks!?

<HTML> <body style="background-color:PowderBlue;"> <HEAD> <TITLE>Birthday Card</TITLE> </HEAD> <BODY> <SCRIPT type="text/javascript" LANGUAGE="JavaScript"> var name; var occasion; var sendersName; name = window.prompt('Enter recipients name', ''); occasion = window.prompt('Enter the occasion', ''); sendersName = window.prompt('Enter senders name', ''); document.write('To ' + name + '!<p></p>'); document.write('Happy ' + occasion + '!<p></p>'); document.write('From ' + sendersName + '!<p></p>'); </SCRIPT> </BODY> </HTML> more

Resolved Question: How can I change the style and or size of output text from this HTML, Java program?

After filling the promt boxes it displays: To ! Happy ! From ! I would like to change the size and style of the outpu text. Thanks! <HTML> <body style="background-color:PowderBlue;"> <HEAD> <TITLE>Birthday Card</TITLE> </HEAD> <BODY> <SCRIPT type="text/javascript" LANGUAGE="JavaScript"> var name; var occasion; var sendersName; name = window.prompt('Enter recipients name', ''); occasion = window.prompt('Enter the occasion', ''); sendersName = window.prompt('Enter senders name', ''); document.write('To ' + name + '!<p></p>'); document.write('Happy ' + occasion + '!<p></p>'); document.write('From ' + sendersName + '!<p></p>'); </SCRIPT> </BODY> </HTML> more

Resolved Question: We keep getting a download box poping up for a java script, I saved the file and opened with notepad.?

This is a copy and paste from notepad, Hopefully this will help someone help me, thanks in advance. Oh and if you try to run the script you get an error. function Args() { var caller = this._findCaller(); if (!caller) { this._queryString = "no_match_script"; } else { var qString = caller.src.replace(/^[^\?]+\??/, ''); if (qString) { this._queryString = qString; } } } if (!Args._SeenScriptCache) Args._SeenScriptCache = new Array(); Args.prototype._findCaller = function() { var scripts = document.getElementsByTagName('script'); for (var i = scripts.length - 1; i >= 0; i--) { var src = scripts[i].src; if (src.match(/^[^\?]+\?/) && src.match(/doubleverify\.com/) && !Args._SeenScriptCache[i]) { Args._SeenScriptCache[i] = 1; return scripts[i]; } else { Args._SeenScriptCache[i] = 1; } } return null; } try { window.parentIsPermitted = false; window.DVCurWin = window; try { for (i = 0; i <= 10; i++) { if ((window.DVCurWin.parent != null) && (window.DVCurWin.parent != window.DVCurWin)) { var loc = window.DVCurWin.parent.location.toString(); var x = loc.length; if (x > 0) { window.DVCurWin = window.DVCurWin.parent; window.parentIsPermitted = true; } else { window.parentIsPermitted = false; break; } } else { if (i == 0) { window.parentIsPermitted = true; } break; } } } catch (e) { window.parentIsPermitted = false; } if (window.DVCurWin.document.referrer.length == 0) { window.DVURL = window.DVCurWin.location; } else { if (window.parentIsPermitted) { window.DVURL = window.DVCurWin.location; } else { window.DVURL = window.DVCurWin.document.referrer; } } var serverName = 'log8.doubleverify.com'; var args = new Args(); var rand = Math.random(); var frameUrl = 'http://' + serverName + '/visitor.aspx?query=' + escape(args._queryString) + '&srcurl=' + escape(DVURL) + '&ver=10&random=' + escape(rand); window.lc = '<img style="width:0px;height:0px;display:none" src="' + frameUrl + '" alt="clear pixel"></img>'; document.writeln(window.lc); } catch (ex) { }We do not want the java script, we don't know why we are getting the repeated pop ups and would like to stop them. more

Voting Question: Can some one help me with this script, this is for my boss.?

the script for the contact page where the customer is going to send us a message and I don’t know where to put the company email This is the html or java code: Your message:<br> <textarea name="textarea" cols="35" rows="35"></textarea><br> <br style="line-height:5px "> <img alt="" src="file:///H|/@@@/web/webpage%20kliyant/home%20page/site_flash/images/spacer.gif" width="90" height="1"><a href="#" class="more" onclick="document.getElementById('form').reset()">reset</a><img alt="" src="file:///H|/@@@/web/webpage%20kliyant/home%20page/site_flash/images/spacer.gif" width="29" height="1"><a href="#" class="more" onClick="document.getElementById('form').submit()">submit</a> </td> more

Resolved Question: how to stop someone from...?

stealing my icons/pictures on my myspace profile... i understand that java script cannot be disabled on myspace but i know there's a code you can use where, when someone saves the pic it will be transparent? can someone help me please... btw i tried using this method to stop people from simply right-clicking on my images and saving them....but it didnt work or i didnt know how to use it. <div style="width:XXXpx; height:YYYpx; background-image:url(http://YourImageUrl… <img src="http://x.myspace.com/images/clear.g… width="XXXpx" height="YYYpx" border="0"> </div>ok so i know you can't stop someone from right clicking my question is.. if anyone knows the CODE...thanks... 10 points to best answer =) more

Resolved Question: my files are not supported by explorer but all other browser's support that.Please help me?

My flash movie with java script plays perfect in all other browser's except explorer. this is the javascript which shows error in explorer. <script type="text/javascript"> <!-- function bannerExpand() { document.getElementById("fireworks").style.clip="rect(0px,1200px,750px,0px)"; } function bannerCollapse() { document.getElementById("fireworks").style.clip="rect(0px,1200px,1px,0px)"; } </script> but these script's work perfectly on all other browser's. please help me to solve this.I am very poor in java scripting.I think problem is due to getElementById(heard that explorer not support that tag,I am sure is it right or not) Thanks in advace gopan more

Resolved Question: JAVA SCRIPT AND CSS PROBLEM PLEASE HELP!!!!!!?

I AM WRKNG OVER A FRM FOR AN AGENCY WHERE I AM USING A DROP DOWN LIST TO DISPLAY THEIR OPTIONS...ITS A NESTED ONE THOUGH AND THE SUB PARTS ARE INVISIBLE..... WAT I WANT IS TO MAKE THIS INVISIBLE FIELD NOT TO OCCUPY ANYSPACE.....COZ OF THIS INVISIBLE FIELD THERE IS A HUGE GAP BETWEEN THE FIELDS I WILL COPY THE CODE HERE PLEASE REVERT BACK SOON: (THIS IS THE CODE PART ONLY NOT THE WHOLE PAGE) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> function showhidefields(mySel) { switch (mySel) { case '1': document.getElementById("hideablearea").style.visibility = "hidden"; case '2': document.getElementById("hideablearea").style.visibility = "visible";break; case '3': document.getElementById("hideablearea").style.visibility = "hidden"; } } </script> </head> <body> <form method="post" action="#"> Is the Car Financed: <select name="decision" onChange="showhidefields(this.value);"> <option value="1">select</option> <option value="2">Yes</option> <option value="3">No</option> </select> <div id="hideablearea" style="visibility:hidden"> Hypothecation:<input type="checkbox" name="chck1"/><br/> Hirepurchase:<input type="checkbox" name="chck2" /></br><br/> Lease:<input type="checkbox" name="chck3" /><br /> </div> </form> </body> </html> more

Resolved Question: How do you change an element class with JavaScript?

I'm trying to change the class of a div from JavaScript, but am having difficulty. I'm fairly new to JavaScript, but am experienced with PHP, HTML, CSS, as well as other languages such as Visual Basic and Java. This is the some example code I'm using now, which doesn't work. <html> <head> <style type="text/css"> .red{color:red;} </style> <script type="text/javascript">document.getElementById("elementid").setAttribute("class", "red"); </script> </head> <body> <div id="elementid">Hello, world!</div> </body> </html> I've also tried the code below without success. <html> <head> <style type="text/css"> .red{color:red;} </style> <script type="text/javascript"> document.getElementById("elementid").className="red"; </script> </head> <body> <div id="elementid">Hello, world!</div> </body> </html> What am I doing wrong? Every resource I've checked says this should work.I think I solved my own problem. I've discovered the wondrous usefulness that it jQuery. Check it out at jquery.com. It's excellent at bringing JavaScript to designers like me. more

Voting Question: Can any one find mistake in this HTML program?

I have used java script in this program and it doesn't work can any one correct it and can any tell the website for correcting HTML programs or any download link for correcting also will work and even the bgsound doesn't work and the google text bar dosen't work and can any one correct this program and tell me if there are any mistakes present; here is the program: - <html> <font size="4" face="comic sans MS"> <marquee style="color:yellow" behavior="alternate" scrollamount="9999999">This page is done by Bipin</marquee> <head> <script type="text/javascript"> function message() { alert("This page is powered by Bipin"); } </script> </head> <body bgcolor="yellowgreen" bgsound src="C:\DOCUME~1\Sri\LOCALS~1\Temp\safA6.tmp\jan.mp3 loop="infinite"> <form><input type="text" size="100"><input type="submit" value="google"> </form> <p style="color:navy">Click on the buttons below to go to the particular website</p> <button onclick="window.location='http://www.yahoo.com'">Yahoo!</button> <button onclick="window.location='http://www.google.com'">Google</button> <br><br><br><br><br> <form action="mailto:k.bipinsaikumar@yahoo.co.in" method="post"> <fieldset> <legend style="color:yellow">Comments:</legend> <p style="color:blue">Name</p><input type="text" value="Type your Name" name="Name" name="E-mail" /> <p style="color:blue">Comments:</p> <input type="text area" size="100" value="type your comments about this website" name="Comments"/> <input type="submit" value="send" /> </fieldset> </form> </body> </html> more

Resolved Question: Why is it tough to learn many programming languages?

The problem is I don't have difficulty with programming I get confused if I learn lots of new programming languages due to their variation in syntax and style So I am planning to learn minimum programming language as possible Is that a good Idea I already know C,C++ and Java and know I am learning python as it is the standard for scripting Do you think learning many programming languages is good or is it fine to just know the above ones more

Resolved Question: Web Design HELP please?

Of course it is homework. I usually find out on my own but this is URGENT. Thank you in advance. Questions: 1)Which of these Web page elements are commonly created with JavaScript? (Select three answers.) A)Interactive images B)Background colors C)Expanding menus D)Games E)Thumbnail images F)Style rules Question 2: A friend tells you he wants to make a Web page where the images change when the mouse pointer points to them. You tell him those are called _________________ images. (Select the best answer.) Thumbnail Mouse Pointer Rollover Question 3: You want to add a JavaScript function to the <head> section of your page. What tags will you use to tell the Web browser that you are using JavaScript? (Select the best answer.) <script> tags with a type attribute <java> tags <style> tags with a type attribute <function> tags Question 4: You want to add a JavaScript function to your page that creates a dialog box. What function will you use? (Select the best answer.) alert() Date() onmouseout onmouseover Question 5:You have typed the following code, but when you view the page in your browser, the alert() message is cut off after You. How can you fix the problem and show the entire message? (Select the best answer.) <a href="family.html" onclick="alert('You're going to learn about my family!');" Take out the quotation marks inside the parentheses. Take out the semicolon. Add a backslash \ before the apostrophe in You're. Delete the href attribute. more

Resolved Question: What is the Java/HTML code for website detect and choose a css style sheet accordingly?

I need a Java and HTML script that will detect what browser the user is using and will load a CSS Style Sheet accordingly. This script should contain detection for the following browsers: Chrome, Safari, Firefox, Internet Explorer, Opera Thanks! more

Resolved Question: simple java script question?

I like a lot of other ppl hate javascript. I have 2 questions that i would like some1 to do for me... exact answers i have never done any classes or have any previous knowledge of javascript. here are the questions: Fist one is to:::::: Develop a JavaScript program that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: Account number. Balance at the beginning of the month. Total of all items charged by this customer this month. Total of all credits applied to this customer’s account this month. Allowed credit limit. The other part is: The program should input each of these facts from prompt dialogs as integers, calculate the new balance (= beginning balance + charges – credits), display the new balance, and determine whether the new balance exceeds the customer’s credit limit. For customers whose credit limit is exceeded, the program should output HTML text that displays the message “Credit limit exceeded”. Please use the appropriate messages and HTML styles to format the output of this program. thanks much guys....This is not something i will run on a server or for school guys... thanks for the advise though.... but i still need to know the answer... any1? plz more

Resolved Question: Is it possible to link java scripted pictures?

Below is part of my source code. It's basically of a tab that changes background on a mouseover(image swap). Is it possible to link these pictures? If not, how can I create a link? I already tried placing a linkable transparent gif image over it with both a higher and lower z-index...neither seemed to work. Thanks. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body> <span class="sidetabs"><img src="http://i391.photobucket.com/albums/oo355/jgsony1/beauty1icon.gif" id="image1" style="display: inline;" onmouseover="document.getElementById('image1').style.display='none'; document.getElementById('image2').style.display='inline';" alt="Canal Park Lighthouse" border="0" height="50" width="225"><img src="http://i391.photobucket.com/albums/oo355/jgsony1/beauty3icon.gif" id="image2" style="display: none;" onmouseout="document.getElementById('image2').style.display='none'; document.getElementById('image1').style.display='inline';" alt="Brighton Beach" border="0" height="50" width="225"></span> </body> </html>I do not know what that is...can you please explain...I'm new to Javascript...I don't know much to say the least. Thanks. more

Resolved Question: Does anyone what this Java Script does?

var vote_num=0;function single_delete(url){formCheck=confirm(lang_suredelete);if(formCheck==true){window.location=url;}else{alert(lang_notdeleted);}};function update_vote_display(vote_num){document.getElementById('vote_num_display').innerHTML=vote_num;};function dl_add_rate(fid,vote){if(!use_enhanced_js){window.location=ipb_var_base_url+'automodule=downloads&req=submit&code=addvote&id='+fid+'&vote='+vote;return false;}else{do_request_function=function(){if(!xmlobj.readystate_ready_and_ok()){return;}var returned=xmlobj.xmlhandler.responseText;var content=new Array();content=returned.split('|');document.getElementById('dl_cur_rate').innerHTML=content[1];document.getElementById('dl_vote').innerHTML=content[0];};xmlobj=new ajax_request();xmlobj.onreadystatechange(do_request_function);xmlobj.process(ipb_var_base_url+'automodule=downloads&req=submit&code=addvote&xml=1&id='+fid+'&vote='+vote);}};var ajax_loaded=1;var post_cache=new Array();function ajax_std_window_resize(pix,pid){var box=document.getElementById('comment-edit-'+pid);var cur_height=parseInt(box.style.height)?parseInt(box.style.height):300;var new_height=cur_height+pix;if(new_height>0){box.style.height=new_height+"px";}return false;};function ajax_cancel_for_edit(com_id){if(post_cache[com_id]!=""){document.getElementById('comment-'+com_id).innerHTML=post_cache[com_id];}return false;};function ajax_save_for_edit(com_id){var url=ipb_var_base_url+'automodule=downloads&req=comments&code=comment_edit_save&cid='+com_id;var fields=new Array();fields['md5check']=ipb_md5_check;fields['cid']=com_id;fields['automodule']='downloads';fields['req']='comments';fields['code']='comment_edit_save';fields['Post']=document.getElementById('comment-edit-'+com_id).value;fields['std_used']=1;do_request_function=function(){if(!xmlobj.readystate_ready_and_ok()){xmlobj.show_loading();return;}xmlobj.hide_loading();var html=xmlobj.xmlhandler.responseText;if(html!='error'){document.getElementById('comment-'+com_id).innerHTML=html;}};xmlobj=new ajax_request();xmlobj.onreadystatechange(do_request_function);var xmlreturn=xmlobj.process(url,'POST',xmlobj.format_for_post(fields));post_cache[com_id]='';return false;};function ajax_prep_for_edit(com_id,event){ipsclass.cancel_bubble(event,true);var post_main_obj=document.getElementById('comment-main-'+com_id);var post_box_top=ipsclass.get_obj_toppos(post_main_obj);var url=ipb_var_base_url+'automodule=downloads&req=comments&code=comment_edit&cid='+com_id;if(!post_cache[com_id]||post_cache[com_id]==''){post_cache[com_id]=document.getElementById('comment-'+com_id).innerHTML;}try{menu_action_close();}catch(e){}do_request_function=function(){if(!xmlobj.readystate_ready_and_ok()){xmlobj.show_loading();return;}xmlobj.hide_loading();var html=xmlobj.xmlhandler.responseText;if(html=='nopermission'){alert(js_error_no_permission);}else if(html!='error'){if(post_box_top){scroll(0,post_box_top-30);}document.getElementById('comment-'+com_id).innerHTML=html;}};xmlobj=new ajax_request();xmlobj.onreadystatechange(do_request_function);xmlobj.process(url);return false;}; Please explain in full for the points :) more

Resolved Question: What am i doing wrong? Java script calender won't position in forms correctly (sits at top of screen)?

<form id="form_4" action="" method="post" target="_self" style="margin:0px; " > <div id="container" style="position:absolute; left:271px; top:261px; width:150px; height:22px; text-align:left;"> </div> <input type="Button" onclick="f_createContent()" value="Create" /> <input type="Button" onclick="f_removeContent()" value="Delete" /> <script language="JavaScript"> var N_CALNUM = 1; function f_createContent() { var e_div = f_getElement('container'); e_div.innerHTML += N_CALNUM + '. <input type="text" name="testinput' + N_CALNUM + '" value="" />' + '<img title="Open Calendar" class="tcalIcon" onclick="A_TCALS[\'myCalID' + N_CALNUM + '\'].f_toggle()" id="tcalico_myCalID' + N_CALNUM + '" src="img/cal.gif"/><br />'; new tcal ({ // form name 'formname': 'testform', // input name 'controlname': 'testinput' + N_CALNUM, // set unique ID to identify the elements 'id': 'myCalID' + N_CALNUM }); N_CALNUM++; } function f_removeContent() { var e_div = f_getElement('container'); e_div.innerHTML = ''; window.A_TCALS = null; window.A_TCALSIDX = null; N_CALNUM = 1; } </script> <div style="position:absolute; left:583px; top:622px; width:81px; height:22px; text-align:left; " > <input type="submit" id="butn_4" value="Submit" > </div> </form> more

Resolved Question: What is a good software for publishing a tutorial/manual/book online?

OK. Not trying to be obnoxious, but I really asked this question in a couple of different places and I am not finding an answer. People try to be helpful for which I am grateful but the give as solution for a different problem. Everybody thinks that I ma trying to design a fancy looking book or anything. Here I will try to explain - I need software - as simple as possible and possibly free - with which software (php script/plug-in, whatever) I can publish a simple structured book like most online tutorials, manuals, guides are. They usually contain a structured, indented contents table/menu and next, previous, up hyperlinks to move around the pages. Here are very close examples of documents done that way. I just don't know what software they use: http://java.sun.com/docs/books/tutorial/... http://www.php.net/manual/en/tutorial.fo... http://docs.python.org/tutorial/introduc... http://www.cplusplus.com/doc/tutorial/co... http://www.w3schools.com/Xml/ http://classic.gimp.org/tut-patt2.html http://en.wikipedia.org/wiki/Wikipedia:T... http://www.htmlcodetutorial.com/css/_CLA... http://dev.mysql.com/doc/refman/5.0/en/p... http://www.python.org/doc/2.4.2/tut/node... - not all of these are good examples in terms of a good quality software but just an example of what kind of documentation structure I am looking for. More ... Please do not put answers that the state that there is not answer (because questions rarely get more than one answer). I understand that with an HTML editor or a website development tool you can achieve the goal. I am looking for a "tool" specific to building a structured document. Where the writer is concentrated in entering the contents of the chapters and ordering them and the publishing and the links/navigation is done for them. Where they to not have to program in HTML every previous/next/up link on every page and if they have to change style or something to have to go back and re-program all thousands of pages already written. more

Resolved Question: How to create a java script pop up?

I have my script and it's perfected, with all the text and options inserted. It looks like a typical Windows Alert box. I typed the script in Windows Notepad. How do I apply it as a homepage so when I click on the Internet icon my homepage and pop-up come up? I tried applying it by setting the .txt file as my home page, but it just showed the script in text form as I typed it. Here's a copy of the script: (also, do i need the first line of script, or is it just there for the website's purpose?) <!-- JavaScript and HTML codes by Quackit.com --> <html> <head> <body> <div style="text-align:center;padding:10px;"> <h1>Page Not Found: 'http://www.yahoo.com' is currently unavailable</h1> <script type="text/javascript"> alert('Trojan found. Terminating mother board. Click OK to procede'); </script> <p><a href="JavaScript:self.close();">April Fool's! (Click to close!)</a></p> </div> </body> </html> It's for my buddy as an April Fool's joke. There's nothing really wrong with it.Also, please give detailed instructions so I can explain to my friend how I did it =) Thank you! more

Resolved Question: HTML HELP... Text in front of Backround Image..?

I'm using this script right now for it, but the text won't show.. it is hidden behind the image.. <head> <font color="white" size="4px">Need java? then <a href="http://jdl.sun.com/webapps/getjava/BrowserRedirect?locale=en&host=www.java.com:80">Click here</a>.</font> </head> <body bgcolor="black"> <div style=" position:absolute;z-index:0;top:0;left:0;width:100%;height:100%; " > <img src="ace.jpg" width="100%" height="100%"> </div> </body>It still won't work with CSS... I tried it.. :(http://acerobotics.co.cc/thing.html See? Help? Right click and view source to help me! more

Resolved Question: Computer Programmer Help!!!!!!!!!!!!?

So i want to run this script. But i don't know if it is in C++ or java or whatever. Could somebody help me compile it and run it? It is right here: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>TreasureTrooper.com Slot Machine</title> <style type="text/css"> table.slot { border-collapse: collapse; } td.slot { padding: 0; } img.slot { border: 0; vertical-align: top; } #wheel { background: url(/graphics/slot/wheel2.jpg) 0px 25px repeat-y; } div.lever { background: url(/graphics/slot/rightmiddlebackground.jpg) no-repeat; height: 266px; } div.slot { font-weight: bold; text-align: center; } #lever { position: absolute; } .levercover { position: relative; } .preload { display: none; } object { position: absolute; top: 0; left: -20px; } #msg1, #msg2 { position: absolute; top: 153px; left: 153px; width: 400px; color: #000000; font-family: Helvetica, Arial, sans-serif; font-size: 300%; font-weight: bold; text-align: center; text-decoration: blink; } #msg2 { top: 150px; left: 150px; color: #FF0000; } #winimage { position: absolute; top: 150px; left: 159px; } .preloadimage{ display:none; } </style> <script type="text/javascript"> var dest = 5000; var time = 8000; var win; var wheel, lever, spintime = 0, animlever = false; var overlimit = true; // until we're told otherwise var coin, daily; var winnames = [ "textcash", "textplatinumcoin", "textpearl", "textgoldcoin", "texthat", "textspear", "textcalculator", "textkiss" ]; function sendFlash( msg, value ) { if( document.flashaudio ) { document.flashaudio.SetVariable( msg, value ); } } function msg( str ) { document.getElementById('winimage').innerHTML = '<img src="/graphics/slot/' + str + '.gif" />'; } function spin() { var done = false; var msec = (new Date()).getTime() - spintime; var pow = Math.pow( msec / time - 1, 2 ); var offset = dest * Math.sqrt( 1 - Math.min( pow, 1 ) ) + 25; wheel.style.backgroundPosition = '0px ' + offset + 'px'; if( msec > 2000 && animlever ) { lever.src = '/graphics/slot/lever4.gif'; animlever = false; } if( msec < time ) { setTimeout( spin, 30 ); } else { spintime = 0; sendFlash( 'playfinalsound', 1 ); if( Math.floor( win ) == win ) { msg( winnames[win] ); if( win == 3 ) setLimit( coin + 1, daily ); // won a gold coin } else if( overlimit ) { msg( "texttrytomorrow" ); } else { msg( "texttryagain" ); } } } function pull() { document.getElementById('winimage').innerHTML = ''; if( spintime == 0 ) { if( overlimit ) { msg("texttrytomorrow"); } else { sendFlash( 'startspin', 1 ); spintime = (new Date()).getTime(); animlever = true; spin(); lever.src = '/graphics/slot/lever-anim.gif'; var script = document.createElement('script'); script.src = "/perl/members/slots.pl?cmd=slot&pick=1&t=" + (new Date()).getTime(); document.body.appendChild( script ); } } } function pick( newWin ) { win = newWin; dest = (45 + win) * 112; sendFlash( 'finalsound', win == Math.floor( win ) ? "/graphics/slot/win.mp3" : "/graphics/slot/lose.mp3" ); } function setLimit( newCoin, newDaily ) { coin = newCoin; daily = newDaily; document.getElementById('coin').innerHTML = coin; var showDaily = Math.min( daily, coin ); document.getElementById('daily').innerHTML = showDaily; overlimit = (showDaily < 1); if(showDaily == '1'){ document.getElementById('pulls').innerHTML = 'pull'; } else{ document.getElementById('pulls').innerHTML = 'pulls'; } } function init() { wheel = document.getElementById('wh more

Resolved Question: is this java or html ?

could someone tell me what language is this java or html, sorry but I don't know anything about programming. It is code I got it and I tried it, it help me but the text wont be in the center so could you tell me also how to do that? <div style="text-align: center;"> </div> <script language="JavaScript"> /***************************************** ******************************************/ <!-- Begin var ALAA = 1; now = new Date(); var rd = now.getSeconds(); var ra = rd % ALAA; var re = ++ra; var sori = ""; if (re == 1) { sori = "yahoo answer is the best"; } if (re == 1) { sori = "Be good"; } var ALAA=""+sori+""; document.write(ALAA); // End --> </script>Thanx colanth but it doesn't work, I've write: document.write('<center>'+ALAA+</cente>); instead of document.write(ALAA); but nothing happen even it doesn't work at all. more

Resolved Question: JavaScript to Java applet conversion?

I am trying to write a app(applet) in java but can not find a script in Java(not JavaScript) that will open a CD/DVD drive? If you find one just answer. Though I have the JavaScript code(maybe) that will do it(???): <html> <head> <title>Eject</title> <script language="JavaScript" type="text/javascript"> <!-- function EjectAll(){ // Eject all CD-ROM drives var col=Player.cdromCollection, c=0; alert(col) while(c<col.count)col.item(c++).eject(); } //--> </script> </head> <body onload="EjectAll()"> <OBJECT ID="Player" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" style="display:none" width="245" height="240"> </OBJECT> </body> </html> more

Voting Question: JAVA txtfile save location and adding another character to the last line?

<html> <head> <script language="javascript"> function WriteToFile() { var fso = new ActiveXObject("Scripting.FileSystemObject"); var s = fso.CreateTextFile("C:\\NewFile.txt", true); var text=document.getElementById("TextArea1").innerText; s.WriteLine(text); s.Close(); } </script> </head> <body> <form> <div> <textarea id="TextArea1" height: style="width: 588px; height: 90px" 90px">SAMPLE </textarea><br /> <input id="Button1" type="button" value="Write" onclick="WriteToFile()"/> </div> </form> </body> </html> hi everyone, i've tried to change the location of ("C:\\NewFile.txt", true); but it didn't work. can anyone figure out why. and additional how can i add the another character to the end of the line of the txtfile and save it again. i don't know php is there an easy way.. thank you so much.. your idea is highly apreciated.. more

Resolved Question: Global variable use in javascript?

I am using the stylesheet to view one report having details depending on user select value from drop dowm box. like i am usnig drop down list box. the value chosen is stored in global variable. Now, I want to access this variable in the body of stylesheet. but variable losts its value in the body part. what to do? plz help. Any javascript expert here.... Code here: <script> var issueType; var severity; function fillCategory(){ // this function is used to fill the category list on load addOption(document.drop_list.Issues, "BC Break", "BC Break", ""); } function SelectSubCat(){ // ON selection of category this function will work removeAllOptions(document.drop_list.Se... addOption(document.drop_list.Severity, "", "Severity", ""); if(document.drop_list.Issues.value == 'BC Break'){ addOption(document.drop_list.Severity,... "Confirm"); addOption(document.drop_list.Severity,... "Possible"); addOption(document.drop_list.Severity,... "Informative"); } } ////////////////// function removeAllOptions(selectbox) { var i; for(i=selectbox.options.length-1;i>=0;... { //selectbox.options.remove(i); selectbox.remove(i); } } function addOption(selectbox, value, text ) { var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; selectbox.options.add(optn); } function displayrequiredDetails() { issueType=document.getElementById("myB... document.getElementById('myUpdateDiv')... = issueType; severity=document.drop_list.Severity.v... } function SwitchView() { if (document.getElementById) { var el = document.getElementById(obj); if (el) { if ( el.style.display != "none" ) { el.style.display = 'none'; document.getElementById("button1").inn... = "View BC Break"; } else { el.style.display = 'inline'; document.getElementById("button1").inn... = "Hide BC Break"; } } } } ---some code-------- </script> <BODY bgColor="#f8f8f8" onload="fillCategory();"> <FORM name="drop_list"> <SELECT NAME="Issues" onChange="SelectSubCat();" > <Option value="">Issue Type</Option> </SELECT> <SELECT NAME="Severity" onChange="displayrequiredDetails();" > <Option value="">Severity</Option> </SELECT> <INPUT type="button" name="go" value="Go!" onClick="SwitchView();"> </INPUT> </FORM> ---- Some code--------- Here I want to access "issueType" var for some conditional expression. I tried. But no success. ---------------------------------- </BODY> But adding an element like <div id="myUpdateDiv">testing</div> and filling the innerHTML of myUpdateDiv changes the text only. My issue is how to use the variable issueType in body like: One xmlDOMNode is used to display data. here : <xsl:if test="count(issue[status='NOK']) > 0 or count(issue[count(status) = 0 and bc_severity=issueType]) > 0"> Now this "issueType" does not work here. I want something like this, one global variable that's value is choosen by user using drop down list box will be used here for comparision. ================================ PLEASE NOTE : ============================== If instead of issueType if I use directly 'BC Break' , it works here. eg. <xsl:if test="count(issue[status='NOK']) > 0 or count(issue[count(status) = 0 and bc_severity='BC Break']) > 0"> Why? I want to use variable issueType here. Plz help me to understand JAVA script better. Just tell me "issueType" which has user selected value can be use here in the <BODY> like i showed before. I think it's not a common problem. Plz help me more

Resolved Question: Global variabl4e acces in body of HTML using javascript?

I posted this question 3 days back Thanks IKOOL for ur reply. Find more details below. java script: How global variable can be used for comparision in body of HTML? How global variable can be used in body of xml using javascript? like i am usnig drop down list box. the value chosen is stored in global variable. Now, I want to access this variable in the body of stylesheet. but variable losts its value in the body part. what to do? plz help. Any javascript expert here.... Code here: <script> var issueType; var severity; function fillCategory(){ // this function is used to fill the category list on load addOption(document.drop_list.Issues, "BC Break", "BC Break", ""); } function SelectSubCat(){ // ON selection of category this function will work removeAllOptions(document.drop_list.Severity); addOption(document.drop_list.Severity, "", "Severity", ""); if(document.drop_list.Issues.value == 'BC Break'){ addOption(document.drop_list.Severity,"Confirm", "Confirm"); addOption(document.drop_list.Severity,"Possible", "Possible"); addOption(document.drop_list.Severity,"Informative", "Informative"); } } ////////////////// function removeAllOptions(selectbox) { var i; for(i=selectbox.options.length-1;i>=0;i--) { //selectbox.options.remove(i); selectbox.remove(i); } } function addOption(selectbox, value, text ) { var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; selectbox.options.add(optn); } function displayrequiredDetails() { issueType=document.getElementById("myBreak").value; document.getElementById('myUpdateDiv').innerHTML = issueType; severity=document.drop_list.Severity.value; } function SwitchView() { if (document.getElementById) { var el = document.getElementById(obj); if (el) { if ( el.style.display != "none" ) { el.style.display = 'none'; document.getElementById("button1").inn... = "View BC Break"; } else { el.style.display = 'inline'; document.getElementById("button1").inn... = "Hide BC Break"; } } } } ---some code-------- </script> <BODY bgColor="#f8f8f8" onload="fillCategory();"> <FORM name="drop_list"> <SELECT NAME="Issues" onChange="SelectSubCat();" > <Option value="">Issue Type</Option> </SELECT> <SELECT NAME="Severity" onChange="displayrequiredDetails();" > <Option value="">Severity</Option> </SELECT> <INPUT type="button" name="go" value="Go!" onClick="SwitchView();"> </INPUT> </FORM> ---- Some code--------- Here I want to access "issueType" var for some conditional expression. I tried. But no success. ---------------------------------- </BODY> But adding an element like <div id="myUpdateDiv">testing</div> and filling the innerHTML of myUpdateDiv changes the text only. My issue is how to use the variable issueType in body like: One xmlDOMNode is used to display data. here : <xsl:if test="count(issue[status='NOK']) > 0 or count(issue[count(status) = 0 and bc_severity=issueType]) > 0"> Now this "issueType" does not work here. I want something like this, one global variable that's value is choosen by user using drop down list box will be used here for comparision. ================================ PLEASE NOTE : ============================== If instead of issueType if I use directly 'BC Break' , it works here. eg. <xsl:if test="count(issue[status='NOK']) > 0 or count(issue[count(status) = 0 and bc_severity='BC Break']) > 0"> Why? I want to use variable issueType here. Plz help me to understand JAVA script better. And IKOOL, U have suggested me to use comparision function. How? Can u help me using example. And plz let me know whether my requirement can be fulfilled the way I am doing the code, means using global variable here in body part. Thannks Ikool for reple once againPLEASE HELP ME OUT. IT'S VERY URGENT. more

Resolved Question: How to make page like this with java?

I wanna make a page like this http://www.aladwaa.com/PostPaid/QBData.asp?st=1301$1 (don't mind the arabic writing just look at the "answer" img on the right) I know this a php page that uses sql...but I need it html to be faster..... but if you can help me making it php with a database...it will be great.... I made one with this script <script type="text/javascript"> function showDescription(id) { var el = document.getElementById(id); if (el.style.display == 'none') el.style.display = 'block'; else if (el.style.display == 'block') el.style.display = 'none'; } </script> see it here... http://mrhelmy.0fees.net/test/ but the problem that I have to change the ID in each question and I have at least 100 questions.....so If you can improve this script or get me a new one that helps me...it'll be great.... thx in advance... more

Voting Question: any Program/Script to bypass captcha numbers?

was wondering if there is a program or a script to put in single captcha numbers and hit the "enter key" so i don't have to do it. there are three styles the captcha numbers it comes in and i have a link from photobucket to show you them. i would also like this program to be relatively fast ;) http://i212.photobucket.com/albums/cc170/acrazymofo/captcha.jpg any help would be appreciated. and i think the website uses java scripting if that helps any. thank you, David more

Resolved Question: Need Help With Website Programming...?

Built my own site using a wysiwyg editor a few months ago. It's getting more and more traffic and I would like to start selling advertising space in addition to the adsense earnings that are coming in. How can I set up the advertising space so that I don't have to change 100 pages just to get the ads online? I don't know anything about style sheets and I don't have it on my pages. I don't use WordPress either and would prefer not to change over unless it's necessary. Or is it done with Java Script? Where can I learn about these things? Thank you!!  more

Resolved Question: How to place a random picture with text in Java script?

Hi, I deleted my past question to clarify it a bit. I realized it was a little hard to understand after I posted it. I've found this script to display a random image every time a user refreshes my website using Java script: <script type="text/javascript"> var banner = new Array(); banner[0] = "website where image is hosted" banner[1] = "website where image is hosted" banner[2] = "website where image is hosted" banner[3] = "website where image is hosted" var random = Math.round(3*Math.random()); document.write('<img style="border: 0;" src="' + banner[random] + '"/>'); </script> Is it possible to have certain text assigned to each random image? For example, To have each random image have text under them describing whats on the picture. If so, Can you provide me with the code to do this? I'd really appreciate it!  more

Resolved Question: Why isn't this Java-script working?

Opens the Link {Code} <a href="javascript:commands();"><img src="commandlsitbar.png" style="border: 0px solid ;"></a> Here is what I have a commands(); {Code} <script language="JavaScript"> function commands() { var generator=window.open('','name','height=400,width=500'); generator.document.write('<html><head><title>Command List</title>'); generator.document.write('</head><body style="background-image: url(http://img.photobucket.com/albums/v311/pink_frog/photoshop02.jpg);">'); generator.document.write('<p><font color=white>::ranarmor- Gives you a Random Armor.</p>'); generator.document.write('<p><font color=white>::resetmypos- Teleports you to Lumbridge, use if stuck/frozen.</p>'); generator.document.write('<p><font color=white>::pickup XXXX #- Allows you to pick up items XXXX= Item ID #=Quantity.</p>'); generator.document.write('<p><font color=white>::hidestatus- Hides Admin and Mod Status (Only works with staff).</p>'); generator.document.write('<p><font color=white>::showstatus- Show after hiding yoru status.</p>'); generator.document.write('<p><a href="javascript:self.close()"> Close</a> the popup.</p>'); generator.document.write('</body></html>'); generator.document.close(); </script> IT does not work when I clink the link though...why?@ Aerv What's that mean? If brackets isn't that Java? This is javascript. Or is it Javascript too? What areas do I need to do this too?<a href="#" onclick="javascript:commands();"> Did not work. Where do I put the second part btw? more

Resolved Question: whats wrong with this java script ?

its to make you type your name and what color you want your name to be typed in , so can you please help me and tell whats wrong ? -------------------------------------- <head> <title>color and name</title> <!-- <script type = "text/javascript"> var name; var color; name = window.prompt( "Please enter your name" ); color = window.prompt( "Enter your choise" "(1=red,2=blue)", "1" ); if ( color == "1" ) document.writeln( "<h1 style = \"color: red\">" ); document.writeln("welcome to our website" name "enjoy!"); else; document.writeln( "<h1 style = \"color: blue">"); document.writlen("welcome to our website" name "enjoy"); // --> </script> </head> yes thank you blink ... but its not that ... i changed it , but still !!! not working '( more

Resolved Question: Change CSS hover with Java-script?

I have a JS function attached to a mouseover event of an anchor element and some CSS... a#imgPop:hover span { ... top: -2em;... } Is it possible to change the *hover span* psuedo selector top value from -2 to say -10 via JS via the following type of line... element.style.border = "0px"; or is this one such reason why the hover style is called a psuedo selector! thanks in advance more

Resolved Question: to webdesigners out there!! please help!!?

I'm aiming to be a web designer. just joined an institute...I want to do web designing as a profession in future... the following are offered in the 3 month certificate course i'm doing.I'm hoping to get my diploma after getting the certificate... is the following qualifications enough to be a pro at web designing??? Course Contents - Introduction to Internet & E-Commerce - Introduction to HTML - Web page development with HTML - Web page text formatting and tag preparation - Usage of FrontPage - Embedded objects and sounds integration of web page - Dynamic HTML and cascading style sheets - Macromedia Flash & Adobe PhotoShop as Web Design Tools - Web Page Designing using Macromedia Dream Weaver - Java Scripting for the Web Page - Introduction to XML what i would like to know is how much can i earn in average for a month by being a full-time web designer?? should i learn graphic designing in addition to be a proffesional web designer?? what other qualifications would be necessary??? please help me out cos i know absolutely nothing about web designing at the moment..as i only just started my courses...but i'm very keen to learn it though... more

Voting Question: I have problem in opening yahoo site?

Hi, I have serious problem, in my cyber cafe, there are 7 computers including server. I have installed Handycafe for controlling all computers. I have tata communications vsnl broadband connection and have d-link 16 port switch. On my server all sites opens immediately, including yahoo.com. But on other computers, there is some problem in opening yahoo's site. It opens immediately sometimes. Sometimes it opens but, not in its proper visuals. All the effects including colors, font style changes, In inbox it shows all the important buttons , but what it does not show, is the mail, which I want to read. I have just installed mozilla by uninstalling it. I have Adobe flash Activex, java script, and all other important softwares. All other sites opens but yahoo! I can;t understand why it is happening. I have Intel chipset on my main computer and giggabite mother board on other computers. But it should not be a problem. Please help me more

Resolved Question: Develop a website that allows users to design/customize their own T-shirt ....?

Develop a website that allows users to design/customize their own T-shirt and then to place an order for a quantity of these T-shirts to be delivered. More specifically, clients should be able to customize a T-shirt in the following ways: •choose an image from an available selection for the front of the T-shirt •type their own text to be printed on the T-shirt, choosing the font style, size and color that it should appear in •select a color for the T-shirt Users should be able to dynamically preview what the T-shirt looks like. When a client is happy with the design of their T-shirt, they should be able to place an order, choosing the required size(s) and respective quantity they wish to buy as well as entering their details (including name, phone and address). This information should be stored on the server in a database. When this is done a confirmation page should be displayed which should include the total price for the order. Assume that there is a fixed price per T-shirt size as follows: Small – 75 L.E, Medium – 85 L.E, Large – 95 L.E and Extra Large – 100 L.E. Also develop a web page that allows clients to retrieve the details of their previous orders by using an order number that was automatically generated and given to them when they placed the order. The details of the order should allow the clients to review the design of their T-shirt that they ordered, the client’s information, the quantity of T-shirts they ordered and the amount of money paid. To develop this website you need to use XHTML, CSS, client-side scripting (Java Script) and server side scripting (PHP) and a database (e.g. MySQL). Marks are divided between the following two components: 1. Implementation of the dynamic website – 70% 2. Report (about 4 pages) – 30% The report should briefly outline your design of the website and then describe the web technologies you have used to implement it, discussing any advantages and disadvantages they may have. more

Resolved Question: Please help I am trying to make this java script open below, not to the right?

<script type="text/javascript"> //SuckerTree Vertical Menu 1.1 (Nov 8th, 06) //By Dynamic Drive: http://www.dynamicdrive.com/style/ var menuids=["suckertree1"] //Enter id(s) of SuckerTree UL menus, separated by commas function buildsubmenus(){ for (var i=0; i<menuids.length; i++){ var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul") for (var t=0; t<ultags.length; t++){ ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle" if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this is a first level submenu ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px" //dynamically position first level submenus to be width of main menu item else //else if this is a sub level submenu (ul) ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it ultags[t].parentNode.onmouseover=function(){ this.getElementsByTagName("ul more

Resolved Question: Java definitions and explanations?

Hi i have a java test tomorrow. I need your help to answer these questions which i did not get. Which debugging tools is used for solving errors? Which reffers to the the data an object stores? Which key word is used to access methods of a base class? A class that contains a class member is calles a(n)? Which is stored when a letter is assigned to the a char variable? Which refers to the data a object stores? the number of data a 4mb hard drive can store is? Style sheets can be embedded? When a class contains more than one constructor , the compiler uses numbers f types of ---------BLANK------ to determine which constructor to excicute first Each execution of loop is called IO Errors? File formats suportaed by Swing package? String manipulation? ****JAVA SCRIPT****** What is prompt What extensions is used when style sheets are saved pLZ help me I need all the help i can get... .. .. .. THANKS HELP ME YAHOO dudes and dudets Thanks more

Voting Question: Java Script?

Why does it still submit the from data eventhough I return false? <html> <head> <title>File Engine: Submit File</title> <script language="javascript"> function validate(frm) { if(frm.url.value == null || frm.url.value == "") { alert("Please enter a url."); frm.url.focus(); frm.url.select(); frm.urlLabel.fgColor = red; return false; } return true; } </script> </head> <div class="heading"><a href="index.html"><img src="Files\logo.gif" alt="File Engine: Home"/></a></div> <form method="post" action = "FileSubmitionProcessor" enctype="multipart/form-data" onsubmit="validate(this)"> <table style="padding:10px;"> <caption>Please enter your file data...</caption> <tr> <td><label name="urlLabel">File URL:*</label></td><td><input type="text" name="url" size="24" class="formField"/></td> </tr> <tr> <td><label>File Name:</label></td><td><inp more

Resolved Question: updating yahoo mail?

my mail box went to basic old style reading. why did it do that and how can i change it? it kinda sucks i liked the new way better. i have java and its telling me that i dont have java script.... but i do! im confused. how do i change back more

Resolved Question: looking for java script for my web "star war style" in the end of the movies the subtitle?

 more

Resolved Question: I need help from a web designer who can design with CSS and Photoshop?

How where these two pages created? http://www.nba.com http://television.aol.com/news/story/_a/... What parts are css and what parts are Java Script? How long will it take to do? Right now to create a site I create a page in Photoshop, slice it and save as html and center in Dreamweaver and just upload it. How do I create a page in Photoshop and convert to a css style? Do I slice up a page design with no text and export? Do I design a page with no text and export as an image and use css to set it as a background? Then in Dreamweaver how do I place text over the image and or image slices that I created? Is it possible to do this in design mode? And why do layers always move when previewed in a browser from how they looked in design mode? I Need detailed help please I need to do something fast. Basically I know Photoshop well, and Flash but not too much about Dreamweaver, CSS, or Javascript. And the page design I want to create seems alost impossible without it.Yeah but what's the creation process? Do I design a whole page as a jpeg with no text and then set as background and use css to put text over it or do I use layers? When are tables appropritate? Do I need html at all, help me out. more