10,325 Topics
![]() | |
Hi guys, I want to assign something into label via JS but code below doesn't work for array. Do I miss something? Thanks in advance [code] <script> function calculate_cost(whichlabel){ document.getElementById('text_cost['+whichlabel+']').innerHTML = 'show me in label below'; } <input type="text" name="text_qty[]" value="0" size="3" maxlength="5" style="text-align:center;" onkeyup="calculate_cost(0)" /> <label id="text_cost[]">0.00</label> [/code] | |
Hello everyone. I seem to be having trouble with the doMath() section of my code. I was wondering if you can help me out... [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Package Plans</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <SCRIPT LANGUAGE="JavaScript"> function … | |
I used from <script> to </script> and the image sections as well. except on my page I have five images a crossed the bottom of the page. So when the image gets larger I want all images to stay in the same spot instead of moving down the page. What … | |
What I want is a pic to show on full background. But the image is not displaying. The code I have ( the relevant parts ): [CODE] <div id="bg"><img src="welcome.psd" width="100%" height="100%" alt="" /></div> [/CODE] And the CSS: [CODE] #bg { position:fixed; top:0; left:0; width:100%; height:100%; } [/CODE] I have … | |
[code]<!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=iso-8859-1" /> <title>Order Item - Using PHP Arrays</title> <style type="text/css"> <!-- body,td,th { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } .style1 { color: #FF6600} .style2 { color: #660033} .error { background-color:#FF0000; color: #FFFFFF; font-style:italic; text-align:center; font-size:13px; … | |
index.html [CODE] <h4>Latest News</h4> <p style="border-bottom: 2px dotted #FF0000; width: 620px;"></p><br /> <div class="post"> <img src="images/pic1.png" ALT="picture1" ALIGN=LEFT><div id="ptitle">Lorem ipsum <div id="pdate">- 14 Jan 2011</div></div><p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce porta diam in quam consectetur elementum. Vestibulum iaculis pellentesque mauris, non sodales erat egestas nec. Proin … | |
i m not convinced with the way explanation given for this drop down menu working .. please help me out [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Menu testing</title> <style type="text/css"> #nav,#nav ul { list-style:none; padding:0; margin:0; } #nav a{ display:block; width:10em; } #nav li { … | |
I think I'm about to go mad. For the past few hours I've been trying to get this: [Code]<HTML> <Head> <LINK REL=StyleSheet HREF="style.css" TYPE="text/css"> <Title>IB Physics - Main</Title> </Head> <Body> <img class="source-image"; src="header.jpg";> <table class="Navbar"; style="margin-top: 50px; padding:25px;"> <tr> <td><a href="index.html"; class="Link-images";><img class="Link-images"; src="Main.png"></a></td> <td><a href="forums.html"; class="Link-images";><img class="Link-images"; src="Forum.png"></a></td> <td><a … | |
Hello everyone, I am currently working on a website for a literary journal that I work for called The Broome Street Review. Currently, we use Wix for the website, but we would like to move away from that and design ourselves. I have been teaching myself HTML and CSS and … | |
![]() | Hey I currently have a demo shopping cart , it works great . the user can add whatever items they want to it. However now i want to add just the bookId's , quantity and price to my sql table to simulate an order taking place. the shopping cart code … ![]() |
hi m facing same problem from 2,3 days i m too confused now. i m making an application. when i take data from from dont know why it doesnot reach the other page as print_r($_POST) is empty my code of both files are" [CODE]<?php $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); ?> <!DOCTYPE html PUBLIC … | |
please find the attached file and see the output. And help me out please this code getting system current date and function. but my requirement is get date from database like the clock want to spin. Please help me out to fix the error d3.js [CODE] (function(){if (!Date.now) Date.now = … | |
I have successfully converted my .tiff file to a text file. This was a major step. My issue now that i am facing is "capturing" pertinent data. I am attempting to do this by running a JavaScript to create an HTML file from the .txt file. I am having trouble … | |
here is my code: import urllib import lxml.html equitydown="http://sc.hkex.com.hk/gb/www.hkex.com.hk/chi/market/sec_tradinfo/stockcode/eisdeqty_c.htm" file=urllib.urlopen(equitydown).read() root=lxml.html.document_fromstring(file') rdata = root.xpath('//tr[@class="tr_normal" and (.//img)]') for data in rdata: data.getparent().remove(data) root1=lxml.html.tostring(root) my=open('c:\\hk1.html','w') my.write(root1) my.close() when i open c:\hk1.html,comparing it with [url]http://sc.hkex.com.hk/gb/www.hkex.com.hk/chi/market/sec_tradinfo/stockcode/eisdeqty_c.htm[/url] there is a problem ,many lines in the [url]http://sc.hkex.com.hk/gb/www.hkex.com.hk/chi/market/sec_tradinfo/stockcode/eisdeqty_c.htm[/url] such as 06830 华众控股 2,000 # 06838 盈利时 2,000 … | |
Hello. I have been using a style sheet for some time now in my html project. The classes are made like this. .twoColLiqLtHdr #container { width: 80%; /* this will create a container 80% of the browser width */ background: #FFFFFF; margin: 0 auto; /* the auto margins (in conjunction … | |
Hello! I would be grateful if somebody can advise me how I can build site same as [url]http://www.guide2marbella.com/property/[/url], namely, I want to creat same search form on my site where I can search items by location, etc. I am very new to web development and know only HTML and CSS. … | |
Hello all, Im new to VB so go easy on me :-D Im trying to autofill a html form and all textboxes and textarea is working ok.. I now have a problem with a combobox1. I added the items below to the combobox1. So whenever i choose one of those … | |
Hi, I have created a jquery slideshow with the following image. Yet, without navigation how to create a small button navigation on the slide show ? What's the code for the css ? [CODE] <style type="text/css"> <?php /* td a { margin: 5px } .nav { margin: 5px 0 } … | |
Hi every1 I am new to CSS and I want to use CSS to format my website.(i use Dreamweaver to create my site) There are many free css template on the Internet but it's difficult to understand them. My question is: do you know some website provide free SIMPLE css … | |
It performs the toggle function to change the class of the paragraph tags and reverts back to the default class name when user rollout of it. You can embed the CSS style code inside the Head section of your page using HTML style tag. Code is as follows : | |
index.html [CODE] <div id="banner"> <img src="images/banner.png" /><img src="images/bannerside.png" /> </div> [/CODE] style.css [CODE] #header #banner { margin: 10px 0 0 20px; } [/CODE] I am hoping those image appears next to each other, instead they come out on top and buttom. How to make them next to each other ? … | |
Hi all, I am developing an website which is required to hide and show HTML. like if visitors user and password are correct then will show "You are logged in as "Namd " "Edit" "Logout" ,as and if logout is pressed then "user name " "password " "forgot password ?" … | |
index.html [CODE] <div id="container"> <div id="header"> <h1><a href="#">Ock Associates</a></h1> <ul id="nav"> <li><a href="#">HOME</a></li> <li><a href="#">ABOUT</a></li> <li><a href="#">PRACTICE AREA</a></li> <li><a href="#">NEWS</a></li> <li><a href="#">PUBLISHED BOOKS</a></li> <li><a href="#">CONTACT US</a></li> <li> <div id="search"> <img src="images/searchform.png" /> <img src="images/searchbutton.png" /> </div> </li> </ul> [/CODE] style.css [CODE] #header ul#nav { float: left; margin: 110px 0 0 … | |
hi, how to display a div on top off all the other content? i tried [ICODE]style=" position:relative; left:0px; top:0px; z-index:100;"[/ICODE] which didn't work, then when i used position:absolute; it worked but, it displays in a totaly in appropriate position because of position:absolute . how can i make this happen? when … | |
index.html [CODE] <div id="side"> <div id="boxcontainer"> <h3>Get In Touch With Us</h3> <div id="image"><img src="images/pic2.png" ALIGN=LEFT></div><div id="text">Request more <br />information from <br />OCK&Associates</div> <br></div><br> <div id="boxcontainer"> <h3>Get In Touch With Us</h3> <div id="image"><img src="images/pic2.png" ALIGN=LEFT /></div><div id="text">Request more <br />information from <br />OCK&Associates</div> </div></div> [/CODE] style.css [CODE] #content #boxcontainer image{ margin: … | |
index.html [CODE] <div id="container"> <div id="header"> <h1><a href="#">Ock Associates</a></h1> <ul id="nav"> <li><a href="#">HOME</a></li> <li><a href="#">ABOUT</a></li> <li><a href="#">PRACTICE AREA</a></li> <li><a href="#">NEWS</a></li> <li><a href="#">PUBLISHED BOOKS</a></li> <li><a href="#">CONTACT US</a></li> </ul> <ul id="topcorner"> <li><a href="#">Career</a> | <a href="#">Mail</a></li> </ul> [/CODE] style.css [CODE] #header ul#topcorner { float: right; margin: 20px 50px 0 0; font: 12px … | |
index.html [CODE] <div id="side"> <div id="boxcontainer"> <div id="side-info"> <h3>Get In Touch With Us</h3> <ul> <li><img src="images/pic2.png" ALT="picture1" ALIGN=LEFT />Request more <br />information from <br />OCK&Associates</li> <br></div></div><br> [/CODE] style.css [CODE] #content #boxcontainer { width:240px; padding: 10px; border:0px solid #000; background-color:#CCCCCC; } #content #boxcontainer h3{ font face: "Arial" color: red size: 14px; … | |
I have Joomla and a Joomla template(rt_refraction_j15) installed on my website. But i want the same template and css styling, as a basic HTML template, so i don't have to use Joomla for editing. Is there an easy way to convert the template to basic HTML/CSS template? | |
[B]Help me to use Search String[/B] [CODE]<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'> <html> <head> <title>DrLop Report</title> <script type='text/javascript' src='JS/AJAXControll.js'></script> <link rel=stylesheet href='CSS/Style.css' type='text/css'> <link rel=stylesheet href='CSS/Style1.css' type='text/css'> <script language="javascript"> function fnTagCheckAll(obj, strt_r_no, r_per_page) { objText = document.getElementById("txtValueCollect"); objText.value = ""; for(var i=strt_r_no; i < (strt_r_no+r_per_page); i++) { v … | |
index.html [CODE] <div id="content"> <div id="main"> <h3>Latest News</h3> <p style="border-bottom: 2px dotted #FF0000; width: 620px;"></p><br /> <div class="post"> <p><img src="images/pic1.png" ALT="picture1" ALIGN=LEFT><font face="Arial" color="red" size="14">Lorem ipsum</font>- 14 Jan 2011<br /> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce porta diam in quam consectetur elementum. Vestibulum iaculis pellentesque mauris, non … | |
I saw this script but wondering if this is possible using div instead of image which maintains the ratio whether you adjust browser height or width [CODE] <!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>maintain height and width</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script … | |
Hello, i have created a html/css version of one of my psds and pretty much everything is working fine, just the background image or the container div to which background image is assigned is not stretching vertically to 100%. Here is the Link to Live version of What i have … | |
Hi guys, I think I need a help. My teacher gave us a activity on Postgres and PHP to query what's inside the database file and code it to PHP to view the results. I have a screenshot on the Database of the Postgre. [URL="http://theoutdatedblogger.com/Email-Newsletters-Template/database.png"]http://theoutdatedblogger.com/Email-Newsletters-Template/database.png[/URL] What I need to do … | |
hi m making a program n i want that when i want to add update a stock it get the name of product from data base and show it in drop down list so that i can select one of them which i want to update. my code for that … | |
hi, i need to empty all the divs whic has an id like 'bkoption' eg : my html code is like this [CODE] <div class="subsubsubmenu" id="bkoption1">some content</div> <div class="subsubsubmenu" id="bkoption2">some content</div> <div class="subsubsubmenu" id="bkoption3">some content</div> [/CODE] so when i trigger an on click function i need to empty all of … | |
hi i want to make a page for the user to take the orders from the user. i want that user select one product from the drop down list then select its size and then color. then submit it. this data about first product appears in the table then he … | |
Hi everyone how are you? I want to share my php problem with you. Please! help me if you can. I am making a database for employees’ record. I want to keep Experience head just one time, and if anyone wants to add more experience, he/she just click on add … | |
I have a some words that I want display in the footer, I want 2 words to be left aligned and rest to be right aligned. I have my code something like this: [CODE] <div class="footer"> MyWebsite <!--This should be left aligned--> <!--Things below should be right aligned--> <a href="">Contact … | |
Hi! Friends, i need some free nice html tamplate for making travel website. 2/3 column, banner image slider. Please give me. | |
Hello everybody, I have a CSS menu in a wordpress based site that I've got to work correctly after help received in this great forum. Thanks for that. I only have one issue pending for this menu, I only would like help with the padding that it seems exists in … | |
The site is gameperspective.freehosting.com. For some reason the button link (Visual) isn't aligning flush with the div margin, it is sliding to the bottom right. Here is the CSS, and the HTML, what is going wrong? Relevant HTML: [CODE]<html> <head> <title>My new blog/ information website! </title> <link rel="stylesheet" type="text/css" href="default_game_site.css"/> … | |
Is there a script that when div resize(browser) it will maintain aspect ratio? ive tried using css which adjust the width through min-max but wish to maintain the aspect ratio (height) [CODE] <!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> <style … | |
i need a simple script that can create a slideshow of websites in an iframe after 20 seconds frequently. how i can do it ? any code sample? Thanks | |
I received the below website but for some reason the email button is not working properly. I'm not getting emails at sales@buykona.com I even try sending one myself, it didn't work. Can anyone help on this? Thanks, Julio <!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 … | |
Keep getting these errors: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Projeto\all.php on line 71 Notice: Use of undefined constant total2 - assumed 'total2' in C:\xampp\htdocs\Projeto\all.php on line 72 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Projeto\all.php on line 124 Notice: Undefined … | |
[B]Pagination[/B] It shows following messages Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 55 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 154 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 167 … ![]() | |
Hi, I ran a speed test for my site with Google Page Speed (and some other tools as well). The Google tool shows that i need to leverage browser caching and the expiration date for cacheable files in my site is currently set to 24h. I did a little bit … | |
i'm novice to this and can anybody say how to change CSS properties with javascript functions? how can i change font-sizes/font styles using a combobox represented in a textarea? [img]http://i.imgur.com/KH0om.jpg[/img] if you can show me how events working..thank you | |
Hello , Friends I am doing googlemap integration . Though i completed it as per my project requirements but i have very small area for displaying map. And as we all know html window on marker have some fixed size. but i found in my reference site that they edited … | |
Hi guys im making a cms site and very close to finishing it but i get this one warning which is [B]Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in C:\wamp\www\cms\_class\cms_class.php on line 117[/B] i dont know how to solve it! It happens when I try to update … |
The End.