I like my new compter,but it has trouble viewing websites.
But I discovered that if I view gmail in basic html,it will run faster.
Is there a way to get all the other websites to do this,or does the website have to provide that option themselves?
Thanks in advance!How do you view websites in basic html?
The website usually has to provide that option themselves, but there's an add-on for firefox called NoScript that blocks all JavaScript. Some websites need JavaScript to function correctly though, but you can try it.How do you view websites in basic html?
One way to do that is to click View - %26gt; Page Source.
There are add-ons for FireFox that will do that too.
:)
Monday, December 12, 2011
How long would it take for this html to load?
The size of the html script and all the images is 3.61 MB (3,787,561 bytes)
The images are BMPs and I know they are larger files but whenever I attempt to change the file to GIF, the quality gets warped.How long would it take for this html to load?
BMP is a terrible format, GIF is even worse. Do not use GIF ever!
Change your image files to Jpeg (very small but will have some quality loss) or PNG (no quality loss but will be larger than Jpeg).How long would it take for this html to load?
Depends on the connection. Cable/Broadband: 15-20 seconds. DSL: 30-40 seconds. Dial up: Never used it lol!
For users who use dial-up it may take forever to load.
BMP is not good really.
over a 56K modem (assuming full bandwidth) would be about 8:30
DSL, depending on the type, could take from about :45 to :18
some sites you can use to determine other file download times:
http://www.numion.com/Calculators/Time.h
http://www.martindalecenter.com/AATimeCa
If you want to speed up your page I say you should change the pictures to JPEGs. It keeps the quality and it loads faster.
The images are BMPs and I know they are larger files but whenever I attempt to change the file to GIF, the quality gets warped.How long would it take for this html to load?
BMP is a terrible format, GIF is even worse. Do not use GIF ever!
Change your image files to Jpeg (very small but will have some quality loss) or PNG (no quality loss but will be larger than Jpeg).How long would it take for this html to load?
Depends on the connection. Cable/Broadband: 15-20 seconds. DSL: 30-40 seconds. Dial up: Never used it lol!
For users who use dial-up it may take forever to load.
BMP is not good really.
over a 56K modem (assuming full bandwidth) would be about 8:30
DSL, depending on the type, could take from about :45 to :18
some sites you can use to determine other file download times:
http://www.numion.com/Calculators/Time.h
http://www.martindalecenter.com/AATimeCa
If you want to speed up your page I say you should change the pictures to JPEGs. It keeps the quality and it loads faster.
How to add more fields in the html forms when a certain condition is met?
I want to add more fields in the html form I filled in when I checked the check box. How to do it ? Can you some give me some quick help ? ThanksHow to add more fields in the html forms when a certain condition is met?
%26lt;html%26gt;
%26lt;body%26gt;
%26lt;script type=';text/javascript';%26gt;
function toggle(target) {
var extra = document.getElementById(target);
if(extra.style.display == ';none';)
{
extra.style.display = ';block';;
}
else
{
extra.style.display = ';none';;
}
}
%26lt;/script%26gt;
%26lt;form%26gt;
%26lt;input type=';checkbox'; onclick=';toggle('extra')';/%26gt;
%26lt;div style=';display: none'; id=';extra';%26gt;
You have checked the checkbox :-)
%26lt;/div%26gt;
%26lt;/form%26gt;
%26lt;/body%26gt;
%26lt;/html%26gt;
%26lt;html%26gt;
%26lt;body%26gt;
%26lt;script type=';text/javascript';%26gt;
function toggle(target) {
var extra = document.getElementById(target);
if(extra.style.display == ';none';)
{
extra.style.display = ';block';;
}
else
{
extra.style.display = ';none';;
}
}
%26lt;/script%26gt;
%26lt;form%26gt;
%26lt;input type=';checkbox'; onclick=';toggle('extra')';/%26gt;
%26lt;div style=';display: none'; id=';extra';%26gt;
You have checked the checkbox :-)
%26lt;/div%26gt;
%26lt;/form%26gt;
%26lt;/body%26gt;
%26lt;/html%26gt;
How to display an image in MS Access 2007 that is reached with an html link?
I want to show images of products that we sell in an MS Access form and report. I have a table with html links to the pictures (the images are on SharePoint, not on a local drive). So far I only managed to show the link, not the image itself. How can that be done?
Thanks.How to display an image in MS Access 2007 that is reached with an html link?
you simply give the path of img in ms access like
%26lt;a href=';c:\abc\xls\img format%26gt;%26lt;/A%26gt;
Thanks.How to display an image in MS Access 2007 that is reached with an html link?
you simply give the path of img in ms access like
%26lt;a href=';c:\abc\xls\img format%26gt;%26lt;/A%26gt;
How do i convert a Joomla template to basic html/css template?
I have Joomla and a Joomla template(rt_refraction_j15) installed on my website. But i want the same template and css styling, as a basic HTML template, so i don't have to use Joomla for editing. Is there an easy way to convert the template to basic HTML/CSS template?How do i convert a Joomla template to basic html/css template?
A Joomla template is basically already in HTML/CSS format. All you need to get is view the stylesheet and then copy one of the pages of the Joomla pages.
You will see a line in the Joomla page similar to this which has the CSS:
%26lt;link rel=';stylesheet'; href=';templates/siteground-j15-68/css/te?type=';text/css'; /%26gt;
Stephen Williamson, Server Engineer
A Joomla template is basically already in HTML/CSS format. All you need to get is view the stylesheet and then copy one of the pages of the Joomla pages.
You will see a line in the Joomla page similar to this which has the CSS:
%26lt;link rel=';stylesheet'; href=';templates/siteground-j15-68/css/te?type=';text/css'; /%26gt;
Stephen Williamson, Server Engineer
How do you view word processor (HTML) documents through your web browser using internet explorer?
I am a beginning web design student. I am creating HTML documents in Microsoft Works word processor but cannot figure out how to view through my web browser (internet explorer) to check my work? It keeps saying that it cannot find document even when I check my computer. Any suggestions?How do you view word processor (HTML) documents through your web browser using internet explorer?
In your web browser, File %26gt; Open, then find the file.
(Although I wouldn't trust MS Works to generate anything approaching decent quality HTML - Microsoft Fontpage does an awful job, and its primary purpose is creating HTML documents).How do you view word processor (HTML) documents through your web browser using internet explorer?
It's on the File option in the top left hand corner, depending on what version of Works you have, it will say something like ';View As Web Page';.
Not sure if you've already done this but.....
When you save the file, do a ';file'; and then ';save as'; to select saving as an .html document from the drop down menu. After you've done that, you may have to locate the file, right click on it and then choose ';open with'; to select IE as the program you want to view it in.
Hope this helps.... =-)work for data entry from transfer file
In your web browser, File %26gt; Open, then find the file.
(Although I wouldn't trust MS Works to generate anything approaching decent quality HTML - Microsoft Fontpage does an awful job, and its primary purpose is creating HTML documents).How do you view word processor (HTML) documents through your web browser using internet explorer?
It's on the File option in the top left hand corner, depending on what version of Works you have, it will say something like ';View As Web Page';.
Not sure if you've already done this but.....
When you save the file, do a ';file'; and then ';save as'; to select saving as an .html document from the drop down menu. After you've done that, you may have to locate the file, right click on it and then choose ';open with'; to select IE as the program you want to view it in.
Hope this helps.... =-)
How do you make an image that can be updated without changing the html code?
I know people have done it. I want to know how to make it so that if i want to change a picture to update itself when i have a newer pic people who have it linked don't have to change the html code. Like a club penguin tracker!How do you make an image that can be updated without changing the html code?
Just make sure the new one has the same name (like Image.jpg) and upload it to the same folder. You'll over write the old one, or you can change it's name first.How do you make an image that can be updated without changing the html code?
just over write the original file it has the same name and address so you don't haft to chance anything
All that's in the HTML file is a link to the image file - there's no picture in it. If the picture location stays the same, and the name of the picture file stays the same, you don't have to change the HTML file.
Go to www.w3schools.com and look up asp
that's what you want to look at
You could just overwrite the image.
Or you could go to gaiatools.com and sign up to make a random signature. Then you could upload the image you were wanting to, then just delete it and add the new one whenever you change it. And apply the code to your blog or website.
Sorry, if that is confusing.
But it you are looking for an excellent photo uploading service I recommend tinypic.com all the way!
Just make sure the new one has the same name (like Image.jpg) and upload it to the same folder. You'll over write the old one, or you can change it's name first.How do you make an image that can be updated without changing the html code?
just over write the original file it has the same name and address so you don't haft to chance anything
All that's in the HTML file is a link to the image file - there's no picture in it. If the picture location stays the same, and the name of the picture file stays the same, you don't have to change the HTML file.
Go to www.w3schools.com and look up asp
that's what you want to look at
You could just overwrite the image.
Or you could go to gaiatools.com and sign up to make a random signature. Then you could upload the image you were wanting to, then just delete it and add the new one whenever you change it. And apply the code to your blog or website.
Sorry, if that is confusing.
But it you are looking for an excellent photo uploading service I recommend tinypic.com all the way!
When writing a font size for HTML, how do you write font size and leading together?
If you are adding type to an HTML entry, how do you add leading to the font size distinction?When writing a font size for HTML, how do you write font size and leading together?
I don't think you can control leading in HTML.
But even if you could, I would still recommend using CSS instead.
Here's how you would do it in CSS:
%26lt;style%26gt;
p {
font-size: 1.2em;
line-height: 1.5em;
}
%26lt;/style%26gt;
Everything in { } are all the styles that will be applied. You can put any number of properties together in there.
The 'p' selector means that all the styles in the { } will apply to everything you have in the %26lt;p%26gt;...%26lt;/p%26gt; element on your page. This selector doesn't have to be a %26lt;p%26gt; but any element or named item.
Font-size is obvious, and line-height is the property name for leading.
I don't think you can control leading in HTML.
But even if you could, I would still recommend using CSS instead.
Here's how you would do it in CSS:
%26lt;style%26gt;
p {
font-size: 1.2em;
line-height: 1.5em;
}
%26lt;/style%26gt;
Everything in { } are all the styles that will be applied. You can put any number of properties together in there.
The 'p' selector means that all the styles in the { } will apply to everything you have in the %26lt;p%26gt;...%26lt;/p%26gt; element on your page. This selector doesn't have to be a %26lt;p%26gt; but any element or named item.
Font-size is obvious, and line-height is the property name for leading.
How Do I start with creating HTML?
I like to customize my laptop but i can't seem to get it with html.How Do I start with creating HTML?
You can't customize your laptop with HTML. You'll need programs to do that.
For Windows, I recommend WindowBlinds
For Mac, I recommend ShapeShifterHow Do I start with creating HTML?
Thanks!
go to this website... it will show you all the basics of HTML
http://www.w3schools.com/html/default.as
HTML Beginner Tutorial
http://htmldog.com/guides/htmlbeginner/
You can't customize your laptop with HTML. You'll need programs to do that.
For Windows, I recommend WindowBlinds
For Mac, I recommend ShapeShifterHow Do I start with creating HTML?
Thanks!
Report Abuse
go to this website... it will show you all the basics of HTML
http://www.w3schools.com/html/default.as
HTML Beginner Tutorial
http://htmldog.com/guides/htmlbeginner/
How do i get 2 images to switch positions upon mouse over using html?
how can i get 2 images to swap positions with either other one of the left, the other to the right using html?How do i get 2 images to switch positions upon mouse over using html?
%26lt;img id=';left'; src=';left.jpg'; onmouseover=';moveImage()'; alt=';'; /%26gt;
%26lt;img id=';right'; src=';right.jpg'; onmouseover=';moveImage()'; alt=';'; /%26gt;
%26lt;script type=';text/javascript';%26gt;
function moveImage() {
var left = document.getElementById( 'left' );
var leftsrc = left.src;
var right = document.getElementById( 'right' );
var rightsrc = right.src;
right.src = leftsrc;
left.src = rightsrc;
}
%26lt;/script%26gt;How do i get 2 images to switch positions upon mouse over using html?
I believe you have to use JavaScript for that. That's the only way I've done it before. It's been years since I dabbled in that - so do a web search for Javscript image rollovers and you should find some tutorials - fairly easy to do if you are already proficient at updating your HTML files (the JavaScript is inserted into your HTML) and managing files on your server.
Not with pure HTML. You would have to use something like JavaScript to achieve this:
Once you have assembled your images, place this JavaScript onto your page. You should put it in the %26lt;head%26gt; of the document, so that it is already working before it has a chance to be called.
Code for %26lt;head%26gt;:
%26lt;script type=';text/javascript';%26gt;
var revert = new Array();
var inames = new Array('smirk');
// Preload
if (document.images) {
var flipped = new Array();
for(i=0; i%26lt; inames.length; i++) {
flipped[i] = new Image();
flipped[i].src = ';media/';+inames[i]+';2.gif';;
}
}
function over(num) {
if(document.images) {
revert[num] = document.images[inames[num]].src;
document.images[inames[num]].src = flipped[num].src;
}
}
function out(num) {
if(document.images) document.images[inames[num]].src = revert[num];
}
%26lt;/script%26gt;
Now we just need to add the images. This is done like any other image, but with some extra JS attributes thrown in:
%26lt;img src=';media/image.gif'; name=';image'; onMouseOver=';over(0)'; onMouseOut=';out(0)';%26gt;
This HTML creates the image. The script will then wait for the user to trigger it. The onMouseOver event handler 鈥榣istens鈥?for certain user actions; in this case their mouse passing over the image. When this happens it fires the over function, and sends the image鈥檚 number along with it. It鈥檚 the first rollover image on the page so it sends a 0. The second image would send a 1 etc. Always remember, the first object in an array is numbered with a zero.
When the user鈥檚 mouse moves away from the image again, onMouseOut notices and fires out, again adding in the image鈥檚 number so the function knows which image it has to work on.
The name attribute we add to our images should be exactly the same as the names we gave the image in the inames array in the script. This is used to construct the rolled-over image鈥檚 filename. If we call our first image image, as I have done, the script decides that the corresponding rolled-over filename will be media/image2.gif. The initial image can be called anything you want, but it would be a good idea to name it similarly to the second, ending with a 1.
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
var image1 = new Image();
image1.src = ';moveup.gif';;
var image2 = new Image();
image2.src = ';movedown.gif';;
var image3 = new Image();
image3.src = ';an1.gif';;
var image4 = new Image();
image4.src = ';an2.gif';;
//--%26gt;
%26lt;/script%26gt;
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
function roll(img_name, img_src)
{
document[img_name].src = img_src;
}
//--%26gt;
%26lt;/script%26gt;
%26lt;a href=';somewhere.html';
onmouseover=';roll('sub_but', 'movedown.gif')';
onmouseout=';roll('sub_but', 'movetup.gif')';%26gt;
%26lt;img src=';moveup.gif'; width=';143'; height=';39'; border=';0';
alt=';Move your mouse over me'; name=';sub_but'; /%26gt;
%26lt;/a%26gt;
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
function roll(img_name1, img_src1, img_name2, img_src2)
{
document[img_name1].src = img_src1;
document[img_name2].src = img_src2;
}
//--%26gt;
%26lt;/script%26gt;
%26lt;a href=';somewhere.html';
onmouseover=';roll('sub1', 'movedown.gif', 'sub2', 'an1.gif')';
onmouseout=';roll('sub1', 'moveup.gif', 'sub2', 'an2.gif')';%26gt;
%26lt;img src=';moveup.gif'; name=';sub1'; width=';143';
height=';39'; border=';0'; /%26gt;
%26lt;/a%26gt;
%26lt;img src=';an2.gif'; name=';sub2'; width=';143'; height=';39'; /%26gt;
%26lt;img id=';left'; src=';left.jpg'; onmouseover=';moveImage()'; alt=';'; /%26gt;
%26lt;img id=';right'; src=';right.jpg'; onmouseover=';moveImage()'; alt=';'; /%26gt;
%26lt;script type=';text/javascript';%26gt;
function moveImage() {
var left = document.getElementById( 'left' );
var leftsrc = left.src;
var right = document.getElementById( 'right' );
var rightsrc = right.src;
right.src = leftsrc;
left.src = rightsrc;
}
%26lt;/script%26gt;How do i get 2 images to switch positions upon mouse over using html?
I believe you have to use JavaScript for that. That's the only way I've done it before. It's been years since I dabbled in that - so do a web search for Javscript image rollovers and you should find some tutorials - fairly easy to do if you are already proficient at updating your HTML files (the JavaScript is inserted into your HTML) and managing files on your server.
Not with pure HTML. You would have to use something like JavaScript to achieve this:
Once you have assembled your images, place this JavaScript onto your page. You should put it in the %26lt;head%26gt; of the document, so that it is already working before it has a chance to be called.
Code for %26lt;head%26gt;:
%26lt;script type=';text/javascript';%26gt;
var revert = new Array();
var inames = new Array('smirk');
// Preload
if (document.images) {
var flipped = new Array();
for(i=0; i%26lt; inames.length; i++) {
flipped[i] = new Image();
flipped[i].src = ';media/';+inames[i]+';2.gif';;
}
}
function over(num) {
if(document.images) {
revert[num] = document.images[inames[num]].src;
document.images[inames[num]].src = flipped[num].src;
}
}
function out(num) {
if(document.images) document.images[inames[num]].src = revert[num];
}
%26lt;/script%26gt;
Now we just need to add the images. This is done like any other image, but with some extra JS attributes thrown in:
%26lt;img src=';media/image.gif'; name=';image'; onMouseOver=';over(0)'; onMouseOut=';out(0)';%26gt;
This HTML creates the image. The script will then wait for the user to trigger it. The onMouseOver event handler 鈥榣istens鈥?for certain user actions; in this case their mouse passing over the image. When this happens it fires the over function, and sends the image鈥檚 number along with it. It鈥檚 the first rollover image on the page so it sends a 0. The second image would send a 1 etc. Always remember, the first object in an array is numbered with a zero.
When the user鈥檚 mouse moves away from the image again, onMouseOut notices and fires out, again adding in the image鈥檚 number so the function knows which image it has to work on.
The name attribute we add to our images should be exactly the same as the names we gave the image in the inames array in the script. This is used to construct the rolled-over image鈥檚 filename. If we call our first image image, as I have done, the script decides that the corresponding rolled-over filename will be media/image2.gif. The initial image can be called anything you want, but it would be a good idea to name it similarly to the second, ending with a 1.
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
var image1 = new Image();
image1.src = ';moveup.gif';;
var image2 = new Image();
image2.src = ';movedown.gif';;
var image3 = new Image();
image3.src = ';an1.gif';;
var image4 = new Image();
image4.src = ';an2.gif';;
//--%26gt;
%26lt;/script%26gt;
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
function roll(img_name, img_src)
{
document[img_name].src = img_src;
}
//--%26gt;
%26lt;/script%26gt;
%26lt;a href=';somewhere.html';
onmouseover=';roll('sub_but', 'movedown.gif')';
onmouseout=';roll('sub_but', 'movetup.gif')';%26gt;
%26lt;img src=';moveup.gif'; width=';143'; height=';39'; border=';0';
alt=';Move your mouse over me'; name=';sub_but'; /%26gt;
%26lt;/a%26gt;
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
function roll(img_name1, img_src1, img_name2, img_src2)
{
document[img_name1].src = img_src1;
document[img_name2].src = img_src2;
}
//--%26gt;
%26lt;/script%26gt;
%26lt;a href=';somewhere.html';
onmouseover=';roll('sub1', 'movedown.gif', 'sub2', 'an1.gif')';
onmouseout=';roll('sub1', 'moveup.gif', 'sub2', 'an2.gif')';%26gt;
%26lt;img src=';moveup.gif'; name=';sub1'; width=';143';
height=';39'; border=';0'; /%26gt;
%26lt;/a%26gt;
%26lt;img src=';an2.gif'; name=';sub2'; width=';143'; height=';39'; /%26gt;
How do you make an image that can be updated without changing the html code?
I know people have done it. I want to know how to make it so that if i want to change a picture to update itself when i have a newer pic people who have it linked don't have to change the html code. Like a club penguin tracker!How do you make an image that can be updated without changing the html code?
Just make sure the new one has the same name (like Image.jpg) and upload it to the same folder. You'll over write the old one, or you can change it's name first.How do you make an image that can be updated without changing the html code?
just over write the original file it has the same name and address so you don't haft to chance anything
All that's in the HTML file is a link to the image file - there's no picture in it. If the picture location stays the same, and the name of the picture file stays the same, you don't have to change the HTML file.
Go to www.w3schools.com and look up asp
that's what you want to look at
You could just overwrite the image.
Or you could go to gaiatools.com and sign up to make a random signature. Then you could upload the image you were wanting to, then just delete it and add the new one whenever you change it. And apply the code to your blog or website.
Sorry, if that is confusing.
But it you are looking for an excellent photo uploading service I recommend tinypic.com all the way!
Just make sure the new one has the same name (like Image.jpg) and upload it to the same folder. You'll over write the old one, or you can change it's name first.How do you make an image that can be updated without changing the html code?
just over write the original file it has the same name and address so you don't haft to chance anything
All that's in the HTML file is a link to the image file - there's no picture in it. If the picture location stays the same, and the name of the picture file stays the same, you don't have to change the HTML file.
Go to www.w3schools.com and look up asp
that's what you want to look at
You could just overwrite the image.
Or you could go to gaiatools.com and sign up to make a random signature. Then you could upload the image you were wanting to, then just delete it and add the new one whenever you change it. And apply the code to your blog or website.
Sorry, if that is confusing.
But it you are looking for an excellent photo uploading service I recommend tinypic.com all the way!
When writing a font size for HTML, how do you write font size and leading together?
If you are adding type to an HTML entry, how do you add leading to the font size distinction?When writing a font size for HTML, how do you write font size and leading together?
I don't think you can control leading in HTML.
But even if you could, I would still recommend using CSS instead.
Here's how you would do it in CSS:
%26lt;style%26gt;
p {
font-size: 1.2em;
line-height: 1.5em;
}
%26lt;/style%26gt;
Everything in { } are all the styles that will be applied. You can put any number of properties together in there.
The 'p' selector means that all the styles in the { } will apply to everything you have in the %26lt;p%26gt;...%26lt;/p%26gt; element on your page. This selector doesn't have to be a %26lt;p%26gt; but any element or named item.
Font-size is obvious, and line-height is the property name for leading.disable desktop remove acne scars from
I don't think you can control leading in HTML.
But even if you could, I would still recommend using CSS instead.
Here's how you would do it in CSS:
%26lt;style%26gt;
p {
font-size: 1.2em;
line-height: 1.5em;
}
%26lt;/style%26gt;
Everything in { } are all the styles that will be applied. You can put any number of properties together in there.
The 'p' selector means that all the styles in the { } will apply to everything you have in the %26lt;p%26gt;...%26lt;/p%26gt; element on your page. This selector doesn't have to be a %26lt;p%26gt; but any element or named item.
Font-size is obvious, and line-height is the property name for leading.
How Do I start with creating HTML?
I like to customize my laptop but i can't seem to get it with html.How Do I start with creating HTML?
You can't customize your laptop with HTML. You'll need programs to do that.
For Windows, I recommend WindowBlinds
For Mac, I recommend ShapeShifterHow Do I start with creating HTML?
Thanks!
go to this website... it will show you all the basics of HTML
http://www.w3schools.com/html/default.as
HTML Beginner Tutorial
http://htmldog.com/guides/htmlbeginner/
You can't customize your laptop with HTML. You'll need programs to do that.
For Windows, I recommend WindowBlinds
For Mac, I recommend ShapeShifterHow Do I start with creating HTML?
Thanks!
Report Abuse
go to this website... it will show you all the basics of HTML
http://www.w3schools.com/html/default.as
HTML Beginner Tutorial
http://htmldog.com/guides/htmlbeginner/
How do i get 2 images to switch positions upon mouse over using html?
how can i get 2 images to swap positions with either other one of the left, the other to the right using html?How do i get 2 images to switch positions upon mouse over using html?
%26lt;img id=';left'; src=';left.jpg'; onmouseover=';moveImage()'; alt=';'; /%26gt;
%26lt;img id=';right'; src=';right.jpg'; onmouseover=';moveImage()'; alt=';'; /%26gt;
%26lt;script type=';text/javascript';%26gt;
function moveImage() {
var left = document.getElementById( 'left' );
var leftsrc = left.src;
var right = document.getElementById( 'right' );
var rightsrc = right.src;
right.src = leftsrc;
left.src = rightsrc;
}
%26lt;/script%26gt;How do i get 2 images to switch positions upon mouse over using html?
I believe you have to use JavaScript for that. That's the only way I've done it before. It's been years since I dabbled in that - so do a web search for Javscript image rollovers and you should find some tutorials - fairly easy to do if you are already proficient at updating your HTML files (the JavaScript is inserted into your HTML) and managing files on your server.
Not with pure HTML. You would have to use something like JavaScript to achieve this:
Once you have assembled your images, place this JavaScript onto your page. You should put it in the %26lt;head%26gt; of the document, so that it is already working before it has a chance to be called.
Code for %26lt;head%26gt;:
%26lt;script type=';text/javascript';%26gt;
var revert = new Array();
var inames = new Array('smirk');
// Preload
if (document.images) {
var flipped = new Array();
for(i=0; i%26lt; inames.length; i++) {
flipped[i] = new Image();
flipped[i].src = ';media/';+inames[i]+';2.gif';;
}
}
function over(num) {
if(document.images) {
revert[num] = document.images[inames[num]].src;
document.images[inames[num]].src = flipped[num].src;
}
}
function out(num) {
if(document.images) document.images[inames[num]].src = revert[num];
}
%26lt;/script%26gt;
Now we just need to add the images. This is done like any other image, but with some extra JS attributes thrown in:
%26lt;img src=';media/image.gif'; name=';image'; onMouseOver=';over(0)'; onMouseOut=';out(0)';%26gt;
This HTML creates the image. The script will then wait for the user to trigger it. The onMouseOver event handler 鈥榣istens鈥?for certain user actions; in this case their mouse passing over the image. When this happens it fires the over function, and sends the image鈥檚 number along with it. It鈥檚 the first rollover image on the page so it sends a 0. The second image would send a 1 etc. Always remember, the first object in an array is numbered with a zero.
When the user鈥檚 mouse moves away from the image again, onMouseOut notices and fires out, again adding in the image鈥檚 number so the function knows which image it has to work on.
The name attribute we add to our images should be exactly the same as the names we gave the image in the inames array in the script. This is used to construct the rolled-over image鈥檚 filename. If we call our first image image, as I have done, the script decides that the corresponding rolled-over filename will be media/image2.gif. The initial image can be called anything you want, but it would be a good idea to name it similarly to the second, ending with a 1.
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
var image1 = new Image();
image1.src = ';moveup.gif';;
var image2 = new Image();
image2.src = ';movedown.gif';;
var image3 = new Image();
image3.src = ';an1.gif';;
var image4 = new Image();
image4.src = ';an2.gif';;
//--%26gt;
%26lt;/script%26gt;
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
function roll(img_name, img_src)
{
document[img_name].src = img_src;
}
//--%26gt;
%26lt;/script%26gt;
%26lt;a href=';somewhere.html';
onmouseover=';roll('sub_but', 'movedown.gif')';
onmouseout=';roll('sub_but', 'movetup.gif')';%26gt;
%26lt;img src=';moveup.gif'; width=';143'; height=';39'; border=';0';
alt=';Move your mouse over me'; name=';sub_but'; /%26gt;
%26lt;/a%26gt;
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
function roll(img_name1, img_src1, img_name2, img_src2)
{
document[img_name1].src = img_src1;
document[img_name2].src = img_src2;
}
//--%26gt;
%26lt;/script%26gt;
%26lt;a href=';somewhere.html';
onmouseover=';roll('sub1', 'movedown.gif', 'sub2', 'an1.gif')';
onmouseout=';roll('sub1', 'moveup.gif', 'sub2', 'an2.gif')';%26gt;
%26lt;img src=';moveup.gif'; name=';sub1'; width=';143';
height=';39'; border=';0'; /%26gt;
%26lt;/a%26gt;
%26lt;img src=';an2.gif'; name=';sub2'; width=';143'; height=';39'; /%26gt;
%26lt;img id=';left'; src=';left.jpg'; onmouseover=';moveImage()'; alt=';'; /%26gt;
%26lt;img id=';right'; src=';right.jpg'; onmouseover=';moveImage()'; alt=';'; /%26gt;
%26lt;script type=';text/javascript';%26gt;
function moveImage() {
var left = document.getElementById( 'left' );
var leftsrc = left.src;
var right = document.getElementById( 'right' );
var rightsrc = right.src;
right.src = leftsrc;
left.src = rightsrc;
}
%26lt;/script%26gt;How do i get 2 images to switch positions upon mouse over using html?
I believe you have to use JavaScript for that. That's the only way I've done it before. It's been years since I dabbled in that - so do a web search for Javscript image rollovers and you should find some tutorials - fairly easy to do if you are already proficient at updating your HTML files (the JavaScript is inserted into your HTML) and managing files on your server.
Not with pure HTML. You would have to use something like JavaScript to achieve this:
Once you have assembled your images, place this JavaScript onto your page. You should put it in the %26lt;head%26gt; of the document, so that it is already working before it has a chance to be called.
Code for %26lt;head%26gt;:
%26lt;script type=';text/javascript';%26gt;
var revert = new Array();
var inames = new Array('smirk');
// Preload
if (document.images) {
var flipped = new Array();
for(i=0; i%26lt; inames.length; i++) {
flipped[i] = new Image();
flipped[i].src = ';media/';+inames[i]+';2.gif';;
}
}
function over(num) {
if(document.images) {
revert[num] = document.images[inames[num]].src;
document.images[inames[num]].src = flipped[num].src;
}
}
function out(num) {
if(document.images) document.images[inames[num]].src = revert[num];
}
%26lt;/script%26gt;
Now we just need to add the images. This is done like any other image, but with some extra JS attributes thrown in:
%26lt;img src=';media/image.gif'; name=';image'; onMouseOver=';over(0)'; onMouseOut=';out(0)';%26gt;
This HTML creates the image. The script will then wait for the user to trigger it. The onMouseOver event handler 鈥榣istens鈥?for certain user actions; in this case their mouse passing over the image. When this happens it fires the over function, and sends the image鈥檚 number along with it. It鈥檚 the first rollover image on the page so it sends a 0. The second image would send a 1 etc. Always remember, the first object in an array is numbered with a zero.
When the user鈥檚 mouse moves away from the image again, onMouseOut notices and fires out, again adding in the image鈥檚 number so the function knows which image it has to work on.
The name attribute we add to our images should be exactly the same as the names we gave the image in the inames array in the script. This is used to construct the rolled-over image鈥檚 filename. If we call our first image image, as I have done, the script decides that the corresponding rolled-over filename will be media/image2.gif. The initial image can be called anything you want, but it would be a good idea to name it similarly to the second, ending with a 1.
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
var image1 = new Image();
image1.src = ';moveup.gif';;
var image2 = new Image();
image2.src = ';movedown.gif';;
var image3 = new Image();
image3.src = ';an1.gif';;
var image4 = new Image();
image4.src = ';an2.gif';;
//--%26gt;
%26lt;/script%26gt;
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
function roll(img_name, img_src)
{
document[img_name].src = img_src;
}
//--%26gt;
%26lt;/script%26gt;
%26lt;a href=';somewhere.html';
onmouseover=';roll('sub_but', 'movedown.gif')';
onmouseout=';roll('sub_but', 'movetup.gif')';%26gt;
%26lt;img src=';moveup.gif'; width=';143'; height=';39'; border=';0';
alt=';Move your mouse over me'; name=';sub_but'; /%26gt;
%26lt;/a%26gt;
%26lt;script type=';text/javascript';%26gt;
%26lt;!--
function roll(img_name1, img_src1, img_name2, img_src2)
{
document[img_name1].src = img_src1;
document[img_name2].src = img_src2;
}
//--%26gt;
%26lt;/script%26gt;
%26lt;a href=';somewhere.html';
onmouseover=';roll('sub1', 'movedown.gif', 'sub2', 'an1.gif')';
onmouseout=';roll('sub1', 'moveup.gif', 'sub2', 'an2.gif')';%26gt;
%26lt;img src=';moveup.gif'; name=';sub1'; width=';143';
height=';39'; border=';0'; /%26gt;
%26lt;/a%26gt;
%26lt;img src=';an2.gif'; name=';sub2'; width=';143'; height=';39'; /%26gt;
How to make a form using HTML/PHP with conditional responses that are based on selection?
How to make a form using HTML/PHP with conditional responses that are based on selection? For instance: drop down menu selections that determine the message on the confirmation screen.How to make a form using HTML/PHP with conditional responses that are based on selection?
Alright - as the first person stated: It will take a bit more code than anyone really has time to put in here, but this should get you started:
HTML FORM:
%26lt;form action=';submit.php'; id=';test';%26gt;
聽聽%26lt;select id=';cars';%26gt;
聽聽聽聽%26lt;option value=';volvo';%26gt;Volvo%26lt;/option%26gt;
聽聽聽聽%26lt;option value=';saab';%26gt;Saab%26lt;/option%26gt;
聽聽聽聽%26lt;option value=';mercedes';%26gt;Mercedes%26lt;/option%26gt;
聽聽聽聽%26lt;option value=';audi';%26gt;Audi%26lt;/option%26gt;
聽聽%26lt;/select%26gt;
%26lt;input type=';submit'; value=';Submit'; /%26gt;
%26lt;/form%26gt;
There's a simple form with a selection box with cars in it. Simple, right? Good!
PHP SCRIPT, file name: submit.php
%26lt;?php
if ( isset ( $_POST['test'] ) ) {
聽聽$car = $_POST['cars'];
聽聽if ( isset ( $car ) ) {
聽聽聽聽echo ';%26lt;p%26gt;You selected '; . $car . ';%26lt;/p%26gt;\n';;
聽聽}
聽聽else {
聽聽聽聽echo ';%26lt;p%26gt;No car selected!%26lt;/p%26gt;\n';;
聽聽}
}
?%26gt;
Like I said, this is a really basic example. I'd suggest learning more about PHP at the following:
http://www.phpro.org
http://www.w3schools.comHow to make a form using HTML/PHP with conditional responses that are based on selection?
Uh, that's an awful lot of programming for anyone to answer it simply here.
First, you need to learn how HTML forms work.
Then you need to learn how PHP can accept and handle data submitted by an HTML form.
You may like to take an html tutorial at
http://referencedesigner.com/tutorials/html/html_1.php
Alright - as the first person stated: It will take a bit more code than anyone really has time to put in here, but this should get you started:
HTML FORM:
%26lt;form action=';submit.php'; id=';test';%26gt;
聽聽%26lt;select id=';cars';%26gt;
聽聽聽聽%26lt;option value=';volvo';%26gt;Volvo%26lt;/option%26gt;
聽聽聽聽%26lt;option value=';saab';%26gt;Saab%26lt;/option%26gt;
聽聽聽聽%26lt;option value=';mercedes';%26gt;Mercedes%26lt;/option%26gt;
聽聽聽聽%26lt;option value=';audi';%26gt;Audi%26lt;/option%26gt;
聽聽%26lt;/select%26gt;
%26lt;input type=';submit'; value=';Submit'; /%26gt;
%26lt;/form%26gt;
There's a simple form with a selection box with cars in it. Simple, right? Good!
PHP SCRIPT, file name: submit.php
%26lt;?php
if ( isset ( $_POST['test'] ) ) {
聽聽$car = $_POST['cars'];
聽聽if ( isset ( $car ) ) {
聽聽聽聽echo ';%26lt;p%26gt;You selected '; . $car . ';%26lt;/p%26gt;\n';;
聽聽}
聽聽else {
聽聽聽聽echo ';%26lt;p%26gt;No car selected!%26lt;/p%26gt;\n';;
聽聽}
}
?%26gt;
Like I said, this is a really basic example. I'd suggest learning more about PHP at the following:
http://www.phpro.org
http://www.w3schools.comHow to make a form using HTML/PHP with conditional responses that are based on selection?
Uh, that's an awful lot of programming for anyone to answer it simply here.
First, you need to learn how HTML forms work.
Then you need to learn how PHP can accept and handle data submitted by an HTML form.
You may like to take an html tutorial at
http://referencedesigner.com/tutorials/html/html_1.php
How to split a big html file into pages?
I have one html file with 73mb,i want to split this file into pages.
What's the best program ?
Something freeware.How to split a big html file into pages?
A 73mb html file would indicate that you are doing things so incredibly wrong, or incredibly different, that NO ONE can help you without knowing more about it.
And the gomers here who have tried (by suggesting things as hilarious as word...) just go to show you of how little use the answers that try will be.
Seriously, I have no clue what you are doing to accomplish such a thing...but it isn't right. God help the internet if you put that thing into production.
Just to give you an idea of why I'm being so blunt: I would say most of this to someone who said their web page was 5 freakin mb. Yours...well, yours is 15 times that. I'm astounded that you've gotten this far...
The only exception is if you are doing something VERY different from what we call ';web design';...like, you're creating a page to launch a space shuttle from or something.How to split a big html file into pages?
office word, pick whatever flavor will let you edit the webpages.
You use Dreamweaver.. It will help you...
Use the latest version of any major browser,
then open developer tools,
then cut copy paste to make smaller pages.
Copy the original file, then make 10 copies of it, if you plan to split into 10pages.
Then for each copy, open it then delete all but the content that should stay on that page number.
There simply isn't any automated tool for this because it's not common practice.
Your pages probably refer to alot of image, video , and sound data?
The html file alone isn't 75MB i bet.
Even if it is so, it should fit into memory no problem.
But I imagine scrolling through the page is a pain.
Good luck.
A single HTML file that is 73MB would seem to be storing your entire website in one file.
In all honesty, you can possibly use server side includes if your web hosting provider allows it (read up on that here: http://en.wikipedia.org/wiki/Server_Side or if you're using PHP, you can use the ';include'; directive (like this: include 'html_page2') to split it up into files however you want, and simply have one include another, which includes the next, etc.
This almost sounds like you have a video that you want to post to the web, is that true?
A 73mb file would be very big for html. Unless its a table generated from a database, or actually a pdf file, there is something wrong.
I don;t know of any program to split html, but there are many than can read in an html table (excel, access) and then generate reports also in html
Word can open html. Using macros or VBA one could probably create a separate html or DOC file for each page
What's the best program ?
Something freeware.How to split a big html file into pages?
A 73mb html file would indicate that you are doing things so incredibly wrong, or incredibly different, that NO ONE can help you without knowing more about it.
And the gomers here who have tried (by suggesting things as hilarious as word...) just go to show you of how little use the answers that try will be.
Seriously, I have no clue what you are doing to accomplish such a thing...but it isn't right. God help the internet if you put that thing into production.
Just to give you an idea of why I'm being so blunt: I would say most of this to someone who said their web page was 5 freakin mb. Yours...well, yours is 15 times that. I'm astounded that you've gotten this far...
The only exception is if you are doing something VERY different from what we call ';web design';...like, you're creating a page to launch a space shuttle from or something.How to split a big html file into pages?
office word, pick whatever flavor will let you edit the webpages.
You use Dreamweaver.. It will help you...
Use the latest version of any major browser,
then open developer tools,
then cut copy paste to make smaller pages.
Copy the original file, then make 10 copies of it, if you plan to split into 10pages.
Then for each copy, open it then delete all but the content that should stay on that page number.
There simply isn't any automated tool for this because it's not common practice.
Your pages probably refer to alot of image, video , and sound data?
The html file alone isn't 75MB i bet.
Even if it is so, it should fit into memory no problem.
But I imagine scrolling through the page is a pain.
Good luck.
A single HTML file that is 73MB would seem to be storing your entire website in one file.
In all honesty, you can possibly use server side includes if your web hosting provider allows it (read up on that here: http://en.wikipedia.org/wiki/Server_Side or if you're using PHP, you can use the ';include'; directive (like this: include 'html_page2') to split it up into files however you want, and simply have one include another, which includes the next, etc.
This almost sounds like you have a video that you want to post to the web, is that true?
A 73mb file would be very big for html. Unless its a table generated from a database, or actually a pdf file, there is something wrong.
I don;t know of any program to split html, but there are many than can read in an html table (excel, access) and then generate reports also in html
Word can open html. Using macros or VBA one could probably create a separate html or DOC file for each page
How do you compose an HTML email in Outlook 2003?
I want to send an HTML email with graphics. I made the page in HTML already, with embedded graphics but am stuck. I changed Mail Format in Outlook to HTML, and sent a test email with the HTML code i made to my own account, but all i saw was the code, not the email/graphics.How do you compose an HTML email in Outlook 2003?
click on a link for more information below
http://office.microsoft.com/en-au/outloo
click on a link for more information below
http://office.microsoft.com/en-au/outloo
How can I change quickbooks from using PDF to a text or html format?
Rather than e-mail everything in PDF format I want to know if its possible to email it as a text, .doc, or an html view for customers. Is this even possible?How can I change quickbooks from using PDF to a text or html format?
use A pdf Convertor Softwares by the way pdf to text or Doc is simple just copy the texts from the pdf document and paste it in new word doc then save ittextbox extension to sqltableprovider
use A pdf Convertor Softwares by the way pdf to text or Doc is simple just copy the texts from the pdf document and paste it in new word doc then save it
Why are my html codes for notepad not working for my games?
Ok, my friend taught me how to get games onto a notepad and save it as a .html and but it on a flash drive so I can play it at school. So I have the %26lt;html%26gt; and %26lt;/html%26gt; and the same for the head and body. I save the %26lt;object%26gt; to %26lt;/object%26gt; in the body section, but when I go to play it and allow it to open it doesn't pop up. Can someone help?Why are my html codes for notepad not working for my games?
If your talking about flash games, you need to probably save the falsh file too. I am not entirely sure how your saving a game into notepad unless your actually saving the HTML of the page.
I would recommend you try gettting a flash ripper at home.
If your talking about flash games, you need to probably save the falsh file too. I am not entirely sure how your saving a game into notepad unless your actually saving the HTML of the page.
I would recommend you try gettting a flash ripper at home.
How do you obtain the html codes for any websites?
I saw a guy doing it with some shortcut on the keyboard and a list of codes just popped in! I'm learning HTML right now and i wanted to know how some websites work.How do you obtain the html codes for any websites?
view the source of the page from menuHow do you obtain the html codes for any websites?
html code can be obtain from source of the page
right click and 'view source' or 'view page source' whichever it says
view source
in internet explorer, go to the menu and click page, and then click view source
you can right click any page and bring up the page source but you cant edit it thats illigal
on Firefox: go to the website and Ctrl + U
on IE : on the menu bar: View %26gt;%26gt; Source.
HTH
You probably saw the guy using the ';view source'; command. In Internet Explorer this is under the menu View %26gt; Source. In FireFox, it's under View %26gt; Page Source (with a keyboard shortcut of Ctrl-U).
Realize that for modern websites, the page source won't tell you everything you need to know about how it is constructed. Much of the layout and presentation information is probably stored in another file called a ';stylesheet';. Have a look near the top of the HTML source and see if you can find any ';link'; tags that point to files ending in ';.css';. Download and study those files, too. Google ';cascading style sheets'; to learn how they work.
Just right click(somewhere in the window) while on the page and in the menu select ';show source code';.
It is simple just open the website in the Firefox and then press '; ctrl+u '; it will open a source code page in front of you.
its a good question, but remember, most sites are in multiple languages, which means they use javascript, php, css, html (or xhtml [xhtml is proper html]) they may also use dhtml (which is a combination o javascript and css), they may have used a database which completly hides some info away from peple using the site.
There is an endless amount of possible coding language they could of used in their file, especially when the file is saved as ';.php';. and good programmers they link to files that contain code that is repetitive in almost every single page, so you may be missing some of the code. theres alot more then just html that you need to understand to be able to understand how sites work.
if you go to http://www.html.net/ it explains very clearly what each thing does. they also have a tutorial for css. I would suggest going there as I did and i never had to re read anything. also dont start learning css until you are strong with html.
The site in my source is the site i use now for studying web coding. Thats the site that made me realise how many languages there really were out there.
Also http://www.zymic.com is a great free web hosting site. it comes complete with a database, a subdomain (a free domain but you are rquired to choose a standardized domain. eg. google in www.google.ca is the domain.). zymic allows you to upload files from your computer throught ';ftp';, their file manager, or by creating ur documents right on theri site.
They also have forums, where many helpful people are glad to answer your questions.
Hope all of this helps you get a mere glimpse of the languages out there.
view the source of the page from menuHow do you obtain the html codes for any websites?
html code can be obtain from source of the page
right click and 'view source' or 'view page source' whichever it says
view source
in internet explorer, go to the menu and click page, and then click view source
you can right click any page and bring up the page source but you cant edit it thats illigal
on Firefox: go to the website and Ctrl + U
on IE : on the menu bar: View %26gt;%26gt; Source.
HTH
You probably saw the guy using the ';view source'; command. In Internet Explorer this is under the menu View %26gt; Source. In FireFox, it's under View %26gt; Page Source (with a keyboard shortcut of Ctrl-U).
Realize that for modern websites, the page source won't tell you everything you need to know about how it is constructed. Much of the layout and presentation information is probably stored in another file called a ';stylesheet';. Have a look near the top of the HTML source and see if you can find any ';link'; tags that point to files ending in ';.css';. Download and study those files, too. Google ';cascading style sheets'; to learn how they work.
Just right click(somewhere in the window) while on the page and in the menu select ';show source code';.
It is simple just open the website in the Firefox and then press '; ctrl+u '; it will open a source code page in front of you.
its a good question, but remember, most sites are in multiple languages, which means they use javascript, php, css, html (or xhtml [xhtml is proper html]) they may also use dhtml (which is a combination o javascript and css), they may have used a database which completly hides some info away from peple using the site.
There is an endless amount of possible coding language they could of used in their file, especially when the file is saved as ';.php';. and good programmers they link to files that contain code that is repetitive in almost every single page, so you may be missing some of the code. theres alot more then just html that you need to understand to be able to understand how sites work.
if you go to http://www.html.net/ it explains very clearly what each thing does. they also have a tutorial for css. I would suggest going there as I did and i never had to re read anything. also dont start learning css until you are strong with html.
The site in my source is the site i use now for studying web coding. Thats the site that made me realise how many languages there really were out there.
Also http://www.zymic.com is a great free web hosting site. it comes complete with a database, a subdomain (a free domain but you are rquired to choose a standardized domain. eg. google in www.google.ca is the domain.). zymic allows you to upload files from your computer throught ';ftp';, their file manager, or by creating ur documents right on theri site.
They also have forums, where many helpful people are glad to answer your questions.
Hope all of this helps you get a mere glimpse of the languages out there.
Subscribe to:
Posts (Atom)