Hi guys,
Im trying to replicate a design into HTML / CSS. The problem is that the text within the site changes between two different colours, multiple font sizes and different font weights. Also the text can be stand alone or multiple types on one line.
I am including a sample below.. These font styles are used all over the site.
S...
<form action="index.php?page=checkin" method="post" name="regForm">
<div id="First_1">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<table cellpadding="0" cellspacing="5">
<tr>
<td style="padding: 5px;">
...
Hi,
Why does this code not find picture links in text?
$text = 'text text <img src = "http://www.singlewheel.com/Scoots/PAV/Martin7PAV/42316.jpg" /> text text';
preg_match_all('#^http:\/\/(.*)\.(gif|png|jpg)$#i', $text, $all_img);
...
Hi all,
I'm sure some of you have seen the following:
<link rel="stylesheet" src="styles.css" media="screen,projection" />
<link rel="stylesheet" src="styles.css" media="print" />
Or whatever else...
But what does the media attribute actually do? I've created several websites and I have never used the media attributes when linking s...
Hi there,
I'm trying to set the default focus on an input box when the page loads (example: google).
My page is very simple, yet I can't figure out how to do this.
This is what I've got so far:
<html>
<head>
<title>Password Protected Page</title>
<script type="text/javascript">
function FocusOnInput()
{
document.getElementById("...
I am trying to use Java to submit a captcha to decaptcher.com. Decaptcher doesn't really do a good job of explaining how to use their API's, so I am trying to figure out how to use an HTTP POST request to submit a captcha. Here is the example code I got from their website:
<form
method="post"
action="http://poster.decaptcher.com/"
...
The basic problem I have is how to keep something on the screen on Safari at all times, while still allowing the user to zoom/pan etc.
The full version is that I am writing a bookmarklet, so it needs to work with as many websites as possible. The overall goal is to have my div show up, anchored to one of the screen edges at all times. T...
This is the site I'm working on and the CSS is in the same directory called saucy.css (sorry I can only post one hyperlink).
First of all, apologies for my awfully invalid HTML and CSS. I promise I'm going to fix it all once the site is up and running! However if this is causing the problems of course I will do it now.
My current probl...
I have a single .jar file that I create by using the runnable .jar file export function in Eclipse. This file runs flawlessly when you just download it and run it. Now I'm trying to embed it in an HTML file, but having trouble.
Here is the standalone jar
Here is the page where I attempt to embed the .jar file. I could not make it run o...
Hello. Can anyone explain how to make this code work?
echo '<div id="panel1-under">Welcome <?php echo "$_SESSION['username']"; ?></div>';
I've tried removing the single quotes so it's like this: - "$_SESSION[username]" but it doesn't work.
Appreciate any help. Thanks!
...
I have a peculiar situation where I am only given control of the contents of a document's <body>. The host, I assume in an effort to remain flexible, is not declaring a doctype which will throw IE into quirks mode immediately. With my limited control over the document, what can I do to force IE to render the page in standards mode?
...
I want the following code to always be in top right, regardless of the size (i.e. when the user resizes the browser window, it is still in the same position):
<div id="navbar"><a href="#">Our Blog</a></div>
The CSS that accompanies this as follows:
#navbar {
position: absolute;
left: 850px;
width: 100px;
padding: 15px...
I'm building a window widget using Javascript, when the window is focused, I want the tab control only stay inside the window widget not jump back to the browser. is there any tab index which I can use use to control it?
...
I have a SELECT which looks like this.
<select id="mySelect"><option value="">Please select</option></select>
At a certain point, my javascript sets the OPTION as follows:
var elSel = document.getElementById('mySelect');
elSel.options[0].value = myValue;
elSel.options[0].text = myText;
The problem is that you have to click the sele...
Is there a way to close a html tag with jQuery?
Like:
<table>
<tr id="tr1">
<td>
hello world!
</td>
</tr>
<tr id="tr2">
<td>
hello world again!
</td>
</tr>
</table>
js code:
$("#tr1").after("</table><table><tr><td>another table</td></tr></table><table>");
...
Hi,
I have a webpage with a content image. On this image, I want to highlight a few different items, triggered by the user rolling over the corresponding item in the text on the same page.
I have transparent PNGs that I can use as image overlays to accomplish the highlighting. I know how to make an overlay appear STATICALLY by using sp...
I want to do this using only CSS + HTML. It has to work in all major/latest browsers - not IE 6 just yet.
The code I have is as follows:
<div id="left_arrow">
<img src="images/left-arrow.png">
</div>
#left_arrow {
position: absolute;
left: 0px;
margin: 10px 0 15px 0; /* top, right, bottom, left */ ...
I want an html form to do nothing after it has been submitted.
action=""
is no good because it causes the page to reload.
Basically i want an ajax function to be called whenever a button is pressed or someone hits "enter" after typing it data. Yes i could drop the form tag and add just call the function from the button's onclic...
I'm working on a project and i need to use multiple html pages to interact with my code
like:
viewing index.html first:-
path = os.path.join(os.path.dirname(__file__), 'index.html')
self.response.out.write(template.render(path, template_values))
and then when i press the sign out button the program should view this page:-
path = o...
Sometime certain words typed into an input type text box, is shown with a red underline on the browser indicating that the word could be grammatically incorrect.
How do I prevent this from showing up?
...