I am designing my first website.
I have designed a button image in gimp and saved it as a jpg.
I want to use this button for my navigation buttons on the site. Should I make a separate image(jpeg) for each button or is it possible to just use one image and then overlay text on top of the images on the page using HTML? What's the best pra...
Hi. I have a div on my page which I want to output to a jpeg file. Is this possible using PHP?
I know there's the GD library for creating images in PHP but I'm not sure if it can do what I want. Because I also want to put a barcode on the image (I used a jQuery plugin to do this on the html page) .
Is this possible (if it's possible ...
In some Google ads I have found that the hyperlink hrefs look like this
href="s-p: Go to XYZ.com"
These work, but I cannot see the code that translates the s-p: bit into an actual url.
What 'veil of ignorance' am I peering behind, please? I would like to know how the conversion is done. What technology is in use here?
This is an A...
Is there a CPAN module or code snippet that I can use to modify local HTML files without using a regExp?
What I want to do :
Change the start tag ( example : <div> to <div id="newtag"> )
Add a tag before another ( example : </head> to <script type="text/javascript"> ...</script></head>
Remove tags
Read the content of a given tag. (<-...
Hello
I am trying to get a PDF generated by abcPDF from html output to print the first three pages in portrait and then switch the fourth page to landscape.
I have been able to get the html to switch into landscape for the fourth page by applying this class to a div that is the 4th page:
.PageLandscape {
width="100%";
height=...
I have a function which needs to redirect the page if a variable is set etc...
The problem is, this function is at the bottom of the php page.
This means, I have outputted alot of information, so I get a headers warning.
"Warning - Headers already sent by ..."
Is there any way to redirect after headers are sent?
Thanks
...
here is my HTML -> http://aivan.info/
Structure
<div id="wrapper">
<div id="leftg">
</div>
<div id="container">
<div id="header">
</div>
<div id="logo">
</div>
<div id="navigation">
</div>
<div id="body">
<div id="bleft">
</div>
<d...
I am just getting started on developing a website. All I have at the moment is a HTML page supported by a couple of CSS stylesheets.
Can I create a WAR file from the HTML and CSS pages? How do I deploy them on to a Tomcat server?
Thanks.
...
I have started making a syntax highlighter in php (only a quick one) and so far I have got a code box generator (aka it creates a table with styles that looks good and can display source code and html code). At the moment when writing code with it I do this:
$code = "def example_ruby_code(does_it_work)
" . "(insert tab here) @does_i...
Can Perl's HTML::Selector::XPath be used for the general purpose of finding XPaths?
use HTML::Selector::XPath;
my $selector = HTML::Selector::XPath->new("li#main");
$selector->to_xpath; # //li[@id='main']
# functional interface
use HTML::Selector::XPath 'selector_to_xpath';
my $xpath = selector_to_xpath('div.foo');
...
I want to let the user click on a file (let's say a .doc link) in the browser and it will open the native desktop application (microsoft word in this case).
And when the user saves the document it will be saved in the web.
Is there a way doing this with Javascript/HTML 5 or does the user have to download the file to be able to open it ...
Hello!
I am working on a website for a client, he wants his tweets at the top of the page. I am confused as to how this is going to work. I have been working with some 3rd party stuff, but no success.
This is the page I am working on:
http://whiterhino.us/jason_tanzer/template.html
This is how I want it to look/work:
http://whiterhino...
I'm creating a table in javascript dynamically. The table I'm creating is 100 rows by 3 columns. Currently I have my own DynamicArray class that I use to make Javascript's Array object work more like C++'s vector class.
Here is the basic logic for generating the HTML:
function BuildTable( data )
{
var div = document.getElementById(...
I have a very simple select drop down. In Chrome, it doesn't drop down. The code itself works fine, and the drop down works in Safari, but for some reason it won't open in Chrome. Here is the HTML:
<select name="pellet_credit" class="item_discount">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
It shou...
Hello, thank you for viewing.
My website includes the same header and footer for each page using PHP.
I wanted a style sheet that only applied specifically for a certain page, so put the style in using the appropriate tag.
...<body><style type="text/css"> /* what ever */ </style></body>...
The style sheet is processed correctly in a...
I have an HTML table with about 100 rows and 3 columns. I have onclick events attached to all 3 of my column headers. What must I do in Javascript to easily sort the table by that column? I can think of a fully blown hand-written approach, but I'm not sure if there are any built-in functions for such a seemingly common operation.
If I h...
Obviously the answer is no... right? The reason I ask is because I have this string defined in XML for an Android app:
<string name="foo"><![CDATA[<html><body><p>This%20is%20a%20test</p></body></html>]]></string>
All I do to the string is read it, and display in an HTML view. I would not have expected the %20s to be interpreted, yet t...
Is it possible to let an user login to multiple websites from my website using javascript?
...
Hello
Example:
<img src="/images/name.jpg" alt="" />
This is what I want:
<img src="name.jpg" alt="" />
Upon request for the image, the image will not be found because it is in the "images" directory and not in the root where the HTML file is.
Is there a way htaccess or any other technique will be able to recognise the http image...
Hello
I just started to develop Air applications with HTML/CSS/JS.
And i was wondering: What is the easiest way to make Growl notifications?
Thanks in advance
...