html

How to specifiy the order of CSS classes?

I'm a little confused about CSS and the class-attribut. I always thought, the order in which I specify multiple classes in the attribut's value has a meaning. The later class could/should overwrite definitions of the previous, but this doesn't seem to work. Here's an example: <html> <head> <style type="text/css"> .extra { color: #...

Sending html email having JQuery scripts

Hello , I'm using PHP to send html emails. I've tried to import css files inside the email, and it works fine. <link href="http://www.mywebsite.com/css/mail_styles.css" type="text/css" rel="stylesheet" /> But i want the email to look stylish with some JQuery tricks, so i tried to import the JQuery library inside the email to a...

How to get horizontal scrolling with the div element?

I have this div element: <div id="tl" style="float:right;width: 400px; height:100px; background-color:Green; overflow-x: scroll;overflow-y: hidden;"> <div id='demo' style="float:left;height:90px;"> dsadsad </div> <div id='demo' style="float:left;height:90px;"> dsadsad </div> </div> The div demo will copy by ...

PHP can I place a global variable inside a variable sample: $names = $_FILES ["dfile"];

Trying to build a admin panel for uploading text and images here is the html page. The Html page is working fine it's the php page that is broken the html is just here for reference. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <title>Administartor Panel</title> <head> <link rel="stylesheet" type="text/css" hre...

div positioning problem

In FireFox 3.5, the following div does not push the page content down. Rather, it overlaps. IE 8 does not. What can I do as a quick fix? <div style="position:fixed;top:0;width:100%;">blah blah</div> ...

change field value when select radio buttons

I want to change the value of hidden input field when radio buttons selected : <input type="radio" name="r1" value="10" />10 <br/> <input type="radio" name="r1" value="45" />45 <br/> <input type="hidden" name="sum" value="" /> for example when user click on one the buttons the value of hidden field change to that v...

Is it possible to hide href title?

<a href="link.html" title="Titletext"> ...is the code. I need to use the title attribute because of slimbox, but I want to hide the title-text that shows up when hovering the mouse over the link. Any ideas? ...

how can i create a form like this ?

in this page : https://www.psd2html.com/order-now.html you can choose the items you want and the price will change with your selection. how can it be built ? ...

JQuery DOM manipulation and window.onbeforeunload in Internet Explorer

Hi, I have this code block: window.onbeforeunload = function(){ <% if (Session["DisableExitConfirmation"] == null || !(bool)Session["DisableExitConfirmation"]) { %> if (isDirty) return '<%= Html.EncodeJsString(Html.Resource("profile_unsavedchanges")) %>'; <% } else { %> if (isDirt...

Ajax browser compatibility

I am developing a webpage in which I use Ajax in the following way. var xmlhttpres=""; function Ajaxfun(spanUsername,spanPassword) { xmlhttpres=GetXmlHttpObject(); if (xmlhttpres==null) { alert ("Browser does not support HTTP Request"); return; } var url="CheckExistuser.php"; url=url+"?Us...

CSS to display unordered list horizontally in IE 6 and 7

I've created a template for WebSVN (see it in action here) and have worked hard to make it use web standards and validate. It looks great in most browsers, but as I feared, IE 6 and IE 7 can't quite hack it. In my case, the problem is that they refuse to render the unordered list for my navigation horizontally — they both display each <l...

Tool to measure Render time

Hi Folks, Is there a tool out there to measure the actual Render time of an element(s) on a page? I don't mean download time of the resources, but the actual time the browser took to render something. I know that this time would vary based on factors on the client machine, but would still be very handy in knowing what the rendering en...

Widget Development: I need to develop a specific countdown widget

I have a client who needs somebody to develop a "countdown widget" for their main public website. It has to do with graduation dates. So, any customer not registered with the widget would see "Start your Graduation Countdown". Clicking on that would do something like provide them with an input form that includes name and graduation da...

How can you render html as it is typed into a textarea?

I am trying to render HTML as it is typed. That is, a user types HTML into a textarea and it is rendered (using javascript, I think) in a Literal or another textarea or perhaps a window within the window. Otherwise, I have to make them type it all in and then click a preview button. ...

why this code is not working ?

I want to show values of two radio buttons in the span tag when they are clicked, but this is not working : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</tit...

onchange insert value into hidden input jquery

Hey.. When i select some data from my option i need the value to be showed when "onchange" the select... can someone help me ? <select name="search_school" id="search_school" onchange="$('#search_school').val() = $('#school_name').val()"> I want the selected option value to be showed in the hidden input <input type="hidden" name="...

Why the diversity in wrapper DIVs?

I often inspect sites using firebug and have noticed quite a range of complexity in the way developers wrap their content. Looking especially at centered aligned layouts: At the simplest end are sites like 99designs.com which simply apply a margin: 0 auto to the body element. Body -> Header/Content/... Next along the scale are...

What is your opinion on uploading HTML?

I am building a control in .net 2.0 to allow users to write HTML into a textarea and then upload it. .NET won't allow them to upload it unless I set the page ValidateRequest=false. Of course, this opens up potential security threats. But, my plan is to uplaod the code, scan it for only the basic tags I would allow (like <B>), possibly in...

Can I set width of 90% with overflow hidden.

We have a div where we would like the width to be dynamic in the sense of say, 90 percent, of screen size. If the contents of the div will overflow we would like to hide the overflow. I can only get the overflow to hide if I set the width to px rather than 90%. Is there a way to do it with percentages? EDIT The problem seems to be t...

Tips to begin programming and multimedia arts?

Hi, I'm mostly a versatile IT specialist but I wanna convert myself to programming and multimedia arts to be good all-around to replace sometimes the needs of another specialist of another branch for little stuff that I could do myself with a little pratice ... I got little knowledge of programming with VB, html and batch files but for ...