I have a function to build a rss feed with PHP:
function createRSS() {
$currentDate = time();
$sql = "SELECT * FROM ". ADS_TABLE ." WHERE expires > $currentDate ORDER BY enterd DESC LIMIT 0,400";
$results = myExec($sql);
// open a file pointer to an RSS file
$fp = fopen ("mexautosrss.xml", "w");
if (!$fp) {
...
Hello,
I am trying to create a bracket system using HTML. I've found other solutions, however, most require lots of absolute/relative positioning or tables.
I'm looking for a way to make it flexible, so I can just change the HTML to change it from a 16-man bracket to a 64-man bracket.
What I have so far (2 examples)
Now, I don't see ...
The problem I am having is that given an input element with a maxlength that is much wider than the element's width (as set in its style), and, given a value that is wider than the element's width, how can I get the element to "scroll" to the end of the text. In IE it is easy, I create a textRange object, put its start and end position ...
I'm trying to make a regexp that will match numbers, excluding numbers that are part of other words or numbers inside certain html tags. The part for matching numbers works well but I can't figure out how to find the numbers inside the html.
Current code:
//number regexp part
var prefix = '\\b()';//for future use
var baseNumber = '((\\...
I'm working with a page where I'm trying to submit data when a link is clicked. I already know how to do this with POST and GET using javascript buttons, but how do I get the same effect when I'm working with HTML links?
...
Lately I have been seeing an increasing number of design articles encouraging the use of typographic quotes (Curly Quotes) for use in web pages over straight quotes.
While I agree typographically, that correct quotes are that much more appealing and add a nice touch to a design, I wonder if it is actually better practice from an encodi...
I am looking for something that will allow me to put a photo gallery onto my website. I would also like to let someone else be able to easily add/remove pictures.
It would be nice, though not required, to work with a photo sharing website (like Flickr).
...
I have to create a name-value list in HTML. (Actually they are form elements, label and input)
How do I build this output so that a web designer can create the following three different layouts without changing the original HTML structure?
Variant 1:
Name One:
Value One
Name Two:
Value Two
Variant 2:
Name One: Value One
L...
I'm trying to design some HTML/CSS that can put a border around specific rows in a table. Yes, I know I'm not really supposed to use tables for layout but I don't know enough CSS to completely replace it yet.
Anyways, I have a table with multiple rows and columns, some merged with rowspan and colspan, and I'd like to put a simple border...
when styling specific html elements, i tend to always use the class attribute. the css code looks cleaner imo.
why do both exist which one should you use and when ?
...
i have the following markup code:
<div style="width: 72%; margin: 15px; margin-left: auto; margin-right: auto;">
<center>
<div style="border-top: Solid 1px Black; border-left: Solid 1px Black; border-right: Solid 1px Black;
padding: 5px; background-color: #EEEEEE;">
</div>
<asp:GridView Style="width: ...
I found that quite a few "toolbar" in web page is implemented with HTML tag UL and LI with style "float:left".
Fore example, with the help of FireBug it is easy to find this pattern in http://www.yahoo.com/.
Is there any reason for that? I don't think that UL and LI are invented to create toolbar.
...
I am working on an application that will have online and offline components and would like to get some opinions on how I am planning to do this. Feel free to give me some tough love if this is a ridiculous idea as I would like to learn as much as possible with this :o)
Here are is an outline for what I am trying to accomplish...
Clie...
I'm building an app in python, and I need to get the URL of all links in one webpage. I already have a function that uses urllib to download the html file from the web, and transform it to a list of strings with readlines().
Currently I have this code that uses regex (I'm not very good at it) to search for links in every line:
for line...
Hi,
I have a webpage that has a bunch of very boring HTML lists on it. I'm looking for some examples of ways to style these with CSS to make them look more interesting. So far I've only really found one, and would welcome some other examples.
Thanks,
Don
...
Common Lisp guys have their CL-WHO, which makes HTML templating integrated with the "main" language thus making the task easier. For those who don't know CL-WHO, it looks like this (example from CL-WHO's webpage):
(with-html-output (*http-stream*)
(:table :border 0 :cellpadding 4
(loop for i below 25 by 5
do (htm
(:tr :a...
Hi,
I've styled some unordered HTML lists and their heading to look like this in Firefox:
Unfortunately, in IE7, they look like this:
The relevant HTML is
<div class="list-column">
<h4>Types de pêche</h4>
<ul>
<li>Pêche en lac</li>
<li>Pêche en Rivière</li>
</ul>
</div>
And the CSS is:
.list-column ...
I've just been working on a page which needs to be accessible to both sighted and visually impaired users. Some elements of the content, just by the nature of relating only to visual elements, simply do not apply to people using screen readers. For example, a link opens an audio-visual presentation in a new window, but due to circumstanc...
Hello, I want to separate the image from the text of this rss with css http://redbolivia.com/index.php?format=feed&type=rss any idea?
can i do this with css?
...
I'm using .NET WebBrowser control.
How do I know when a web page is fully loaded?
I want to know when the browser is not fetching any more data. (The moment when IE writes 'Done' in its status bar...).
Notes:
The DocumentComplete/NavigateComplete events might occur multiple times for a web site containing multiple frames.
The browse...