473,473 Members | 1,959 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do you execute an 'if' statement with html

1 New Member
How do you execute an if-statement on a drop down box. I have to do a camera website and basically there's a drop down box for camera manufacturer, if an option is clicked then reaults are displayed thats what i'm going for
Nov 8 '07 #1
2 3238
Markus
6,050 Recognized Expert Expert
Impossible to do through HTML or CSS

Head over to the Javascript/AJAX forum.

Or, indeed, the PHP forum

:)
Nov 8 '07 #2
nitinpatel1117
111 New Member
The if statements in html are really basic.

I've only ever used them to detect the browser and browser version. not sure if they can be used to do anything else, as i've never tried to do anything else with them.


IF statements need to be inside HTML comments, i.e.

[HTML]<!-- -->[/HTML]

Interent Explorer is the only browser that will run these IF statements as it is the only broswer that executes HTML comments. All the other browsers ignore HTML comments.

You can use the if statements to include other stylesheets or javascript files. based on whether the browser is internet explorer and the version

e.g.

[HTML]<!--[if lt IE 7]>
<link rel="stylesheet" href="css/styles-lessthan7.css" type="text/css" />
<![endif]-->

<!--[if IE]>
<link rel="stylesheet" href="css/styles-ie.css" type="text/css" />
<![endif]-->[/HTML]
Nov 8 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sheila King | last post by:
I have searched for an answer to this question on the comp.lang.python archives at Google Groups, and also looked through the (sparse) MySQLdb documentation, and cannot confirm for a FACT what I...
3
by: robert | last post by:
Hello, Anybody knows if it's possible to execute python code from an db. db=MySQLdb.connect(host="localhost",user="r",passwd="j",db="v") c=db.cursor() c.execute("""SELECT * FROM table...
4
by: Jill Graham | last post by:
Hi, I'm using an access database and found following problem : I have a table X with 2 records : record 1 & record 2. I execute following procedure with 2 steps : 1. The procedure deletes...
1
by: PJ | last post by:
<% Set Conn = Server.CreateObject("ADODB.Connection") Conn.open application("dtat_motor_connectionstring") set rs = new adodb.recordset 'Set RS = Conn.Execute(' "exec spcn_update_transactions &...
4
by: Sergey Suleymanov | last post by:
Documentation says "By default, only the owner (creator) of the function has the right to execute it." But for me newly created function has execute privilege to public by default. And we have...
6
by: Doohan W. | last post by:
Hi, I'm now working with DB2, and I can't find out how to execute the contents of a string Statement, without using a Java/... procedure, only using SQL statements. I know that some SQBDs such...
18
by: swaroophr | last post by:
Which of switch statement and if-else statement takes less time to execute?
7
by: JIM.H. | last post by:
Hello, Is there any difference to between SLQ string in the code and call execute query and call a stored procedure and execute the query that way concerning speed, effectiveness, reliability,...
1
by: Brendan Jurd | last post by:
Hello all, I've discovered that in 7.4.2 PL/pgSQL, the FOUND variable is not at all affected by use of the EXECUTE command, even if the statement you pass to EXECUTE would set FOUND to true when...
0
by: David | last post by:
- Are there any peculiarities with using curs.executemany(...) vs. multiple How many times are you calling execute vs a single executemany? The python call overhead will add up for thousands of...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.