Help with HTML

PCs, laptops, macs, mp3 players, consoles, peripherals
Jangloid Mark
Posts: 1458
Joined: Mon Oct 01, 2007 6:38 pm
Last.fm: http://www.last.fm/user/JanglyMark
Location: Swansea, Wales
Contact:

Re: Help with HTML

Post by Jangloid Mark » Thu Sep 11, 2008 12:55 pm

humblebee wrote:The thing is, though, you learn something these days and it's obsolete five minutes later.
Yeah...I know what you mean.

This may come as a surprise to those of you who know me from the Bowlie days, but, I actually studied computers up to HND level. In those days, it was dBASE III (which I was a wizard at), Cobol & Pascal (which I was competant at), and C (which I really struggled with).

After leaving college, and looking for work, all the jobs wanted my qalification, along with at least 2 years work experience, which I didn't have. Catch 22.

Much of what I learned then is obsolete now.
I'm earning a fraction of what I could with my qualifications, but, I wouldn't go back to it now...the pace of change being the main reason.

I'm doing this for fun...if I get fed up trying to sort out bugs, I can just leave it, and come back when I feel like it. In the grand scheme of things, it doesn't really matter.

I'll be honest, it's much more gruelling than I thought it would be when I started.

I've got CSS & Javascript (I only partially understand Javascript) in there as well as HTML.
When I started, it was suggested to me that I use a HTML generator. I have about 4 different ones now. My experience of such programs was that either the pages were so structured that I couldn't get what I wanted (and everything in tables - yuck), or were so user unfriendly that I may as well learn the language myself. So, that is what I did. Initially by messing around with HTML generators, then exploring the source code to see which code did what. I've also nicked (then played around with) bits of code from webpages, and Googled coding tips for what I wanted to do.

It's all a bit 'patched together', but, that generally tends to be my style.

I've got to be honest, I'm fast losing patience with the IE6 rendering issue. My last remaining issue. Fuck it. If it works in IE7, I'm going to add coding for IE6 saying that the page may not display quite right in this browser, and link to Mozilla, telling people to download Firefox. Let's be honest, IE6 is virtually obselete anyway, and Firefox works perfectly for others like me who have an old PC.

One more question if I may...I plan to put a guestbook on there. I've got basic coding (not yet uploaded), but, I've read somewhere that worms/viruses can get in through a guestbook. Is this true? I don't mind spam, I can delete that manually, but, I don't want my website compromised.
Love is a weakness in the knees...it's dangerous on the stairs...

Bandcamp : https://janglymark.bandcamp.com/
Facebook : http://www.facebook.com/Jangly.Mark
Skype : Jangly Mark (feel free to call me)

Jangloid Mark
Posts: 1458
Joined: Mon Oct 01, 2007 6:38 pm
Last.fm: http://www.last.fm/user/JanglyMark
Location: Swansea, Wales
Contact:

Re: Help with HTML

Post by Jangloid Mark » Thu Sep 11, 2008 12:58 pm

humblebee wrote:The thing is, though, you learn something these days and it's obsolete five minutes later.
Yeah...I know what you mean.

This may come as a surprise to those of you who know me from the Bowlie days, but, I actually studied computers up to HND level. In those days, it was dBASE III (which I was a wizard at), Cobol & Pascal (which I was competant at), and C (which I really struggled with).

After leaving college, and looking for work, all the jobs wanted my qalification, along with at least 2 years work experience, which I didn't have. Catch 22.

Much of what I learned then is obsolete now.
I'm earning a fraction of what I could with my qualifications, but, I wouldn't go back to it now...the pace of change being the main reason.

I'm doing this for fun...if I get fed up trying to sort out bugs, I can just leave it, and come back when I feel like it. In the grand scheme of things, it doesn't really matter.

I'll be honest, it's much more gruelling than I thought it would be when I started.

I've got CSS & Javascript (I only partially understand Javascript) in there as well as HTML.
When I started, it was suggested to me that I use a HTML generator. I have about 4 different ones now. My experience of such programs was that either the pages were so structured that I couldn't get what I wanted (and everything in tables - yuck), or were so user unfriendly that I may as well learn the language myself. So, that is what I did. Initially by messing around with HTML generators, then exploring the source code to see which code did what. I've also nicked (then played around with) bits of code from webpages, and Googled coding tips for what I wanted to do.

It's all a bit 'patched together', but, that generally tends to be my style.

I've got to be honest, I'm fast losing patience with the IE6 rendering issue. My last remaining issue. Fuck it. If it works in IE7, I'm going to add coding for IE6 saying that the page may not display quite right in this browser, and link to Mozilla, telling people to download Firefox. Let's be honest, IE6 is virtually obselete anyway, and Firefox works perfectly for others like me who have an old PC.

One more question if I may...I plan to put a guestbook on there. I've got basic coding (not yet uploaded), but, I've read somewhere that worms/viruses can get in through a guestbook. Is this true? I don't mind spam, I can delete that manually, but, I don't want my website compromised.
Love is a weakness in the knees...it's dangerous on the stairs...

Bandcamp : https://janglymark.bandcamp.com/
Facebook : http://www.facebook.com/Jangly.Mark
Skype : Jangly Mark (feel free to call me)

User avatar
cuppie
Posts: 877
Joined: Sat Sep 29, 2007 2:12 am
Last.fm: http://www.last.fm/user/cuppie
Location: Ostrava

Re: Help with HTML

Post by cuppie » Thu Sep 11, 2008 1:39 pm

Jangloid Mark wrote:. (double post)
Mr. Mark, you don't ever have to say this. You can delete your posts.

User avatar
Colin
Posts: 1834
Joined: Sat Sep 29, 2007 11:56 pm
Last.fm: http://www.last.fm/user/colinbmx
Location: Glasgow
Contact:

Re: Help with HTML

Post by Colin » Thu Sep 11, 2008 1:42 pm

cuppie wrote:
Jangloid Mark wrote:. (double post)
Mr. Mark, you don't ever have to say this. You can delete your posts.
I can't delete mine. Is it just moderators who can delete their own posts?

User avatar
Martijn
Posts: 1260
Joined: Sat Oct 13, 2007 8:27 pm
Last.fm: http://www.last.fm/user/thinksmall
Location: Exeter
Contact:

Re: Help with HTML

Post by Martijn » Thu Sep 11, 2008 1:47 pm

Colin wrote:I can't delete mine. Is it just moderators who can delete their own posts?
As you will probably have found out now, you can only delete your own posts when they are the last one in their thread. Which sounds fair, doesn't it?

User avatar
cuppie
Posts: 877
Joined: Sat Sep 29, 2007 2:12 am
Last.fm: http://www.last.fm/user/cuppie
Location: Ostrava

Re: Help with HTML

Post by cuppie » Thu Sep 11, 2008 1:51 pm

Oh you're right. I'm such a turd!

User avatar
Colin
Posts: 1834
Joined: Sat Sep 29, 2007 11:56 pm
Last.fm: http://www.last.fm/user/colinbmx
Location: Glasgow
Contact:

Re: Help with HTML

Post by Colin » Thu Sep 11, 2008 1:52 pm

Ah right, it's that red X isn't it? I was expecting a Delete button next to where it says Quote and Edit.

User avatar
indiehorse
Posts: 1939
Joined: Mon Oct 01, 2007 10:50 am
Last.fm: http://www.last.fm/user/
Location: Nottingham
Contact:

Re: Help with HTML

Post by indiehorse » Thu Sep 11, 2008 3:35 pm

Jangloid Mark wrote: I've got to be honest, I'm fast losing patience with the IE6 rendering issue. My last remaining issue. Fuck it. If it works in IE7, I'm going to add coding for IE6 saying that the page may not display quite right in this browser, and link to Mozilla, telling people to download Firefox. Let's be honest, IE6 is virtually obselete anyway, and Firefox works perfectly for others like me who have an old PC.
According to the latest W3C statistics, IE6 is only marginally less popular than IE7 at present.

It's fine for the home user to upgrade their browsers willynilly, but, for instance, if I went to my local library to browse the web, I would have no option but to use IE6.

Jangloid Mark
Posts: 1458
Joined: Mon Oct 01, 2007 6:38 pm
Last.fm: http://www.last.fm/user/JanglyMark
Location: Swansea, Wales
Contact:

Re: Help with HTML

Post by Jangloid Mark » Thu Sep 11, 2008 6:36 pm

indiehorse wrote:According to the latest W3C statistics, IE6 is only marginally less popular than IE7 at present.

It's fine for the home user to upgrade their browsers willynilly, but, for instance, if I went to my local library to browse the web, I would have no option but to use IE6.
That actually surprises me. All bar one of the people I know have Firefox. Even my technically inept Mum has Firefox.

Anyway, I can now report that it works in IE7, it's just IE6 that throws up problems. The message has been uploaded, although only IE6 users can see it.

I will keep plugging away at it, though.
Priority now is fleshing out the pages. The way I plan the rest of the site, only one other page will have the same problem.

THinking aloud, as it's only 2 pages, I may redirect IE6 traffic to another - less attractively laid out page....need to sleep on that, though....
Love is a weakness in the knees...it's dangerous on the stairs...

Bandcamp : https://janglymark.bandcamp.com/
Facebook : http://www.facebook.com/Jangly.Mark
Skype : Jangly Mark (feel free to call me)

User avatar
Sootyzilla
Posts: 1096
Joined: Sun Dec 16, 2007 1:31 am
Last.fm: http://www.last.fm/user/sootyzilla
Location: lounging about at the edge of the dancefloor

Re: Help with HTML

Post by Sootyzilla » Thu Sep 11, 2008 8:08 pm

Jangloid Mark wrote:That actually surprises me. All bar one of the people I know have Firefox. Even my technically inept Mum has Firefox.
Think of people in big companies who aren't allowed to install any software on their computers and have to make do with whatever IT's standardised image is. They are generally using the previous generation of everything because big companies take so long to update things.

I'm not saying there aren't good reasons for this, before anyone starts ...
As wrong as it was to do,
Those eyes were made to look into.

Jangloid Mark
Posts: 1458
Joined: Mon Oct 01, 2007 6:38 pm
Last.fm: http://www.last.fm/user/JanglyMark
Location: Swansea, Wales
Contact:

Re: Help with HTML

Post by Jangloid Mark » Tue Jun 02, 2009 11:39 pm

I haven't even begun to think about this one, but, if anyone knows, it saves me working it out...

More CSS than HTML.

Here is a line of code (that works) that puts an image as a background on a page....

body, .photo, #nonfooter, #booklet { background: url(" URL addy ") #222222 fixed repeat left top!important; color:#ffffff !important; }

What I now want to do is that each time this is executed, instead of displaying the JPG file that is at the specified URL, to choose at random from one of, say, a dozen specified URLs.

How would I go about this?
Love is a weakness in the knees...it's dangerous on the stairs...

Bandcamp : https://janglymark.bandcamp.com/
Facebook : http://www.facebook.com/Jangly.Mark
Skype : Jangly Mark (feel free to call me)

User avatar
tonieee
Posts: 4471
Joined: Sun Sep 30, 2007 8:40 am
Last.fm: http://www.last.fm/user/tonieee
Location: Sheffield Sex City
Contact:

Re: Help with HTML

Post by tonieee » Wed Jun 03, 2009 6:23 am

The only way you can do that (as far as I know) is with some JavaScript that sets up the background when the page is loaded.

User avatar
Martijn
Posts: 1260
Joined: Sat Oct 13, 2007 8:27 pm
Last.fm: http://www.last.fm/user/thinksmall
Location: Exeter
Contact:

Re: Help with HTML

Post by Martijn » Wed Jun 03, 2009 8:25 am

Can you use PHP, Mark? (As in: do you know PHP and can your server deal with PHP?) For one solution would be to put the CSS in the document itself (if you haven't already done that) and make PHP choose the image like this:

Code: Select all

body, .photo, #nonfooter, #booklet { background: url(" URL <?php
// some PHP code that prints the name of a random image from a list
?> ") #222222 fixed repeat left top!important; color:#ffffff !important; }
Another option, also with PHP, is to make a script that outputs a random image and then use that in your CSS.

Jangloid Mark
Posts: 1458
Joined: Mon Oct 01, 2007 6:38 pm
Last.fm: http://www.last.fm/user/JanglyMark
Location: Swansea, Wales
Contact:

Re: Help with HTML

Post by Jangloid Mark » Wed Jun 03, 2009 1:01 pm

It's for coding in the Firefox extension, Stylish, so, as far as I'm aware, it can't use PHP. For the same reason, I can't use a Javascript code to do this....
Love is a weakness in the knees...it's dangerous on the stairs...

Bandcamp : https://janglymark.bandcamp.com/
Facebook : http://www.facebook.com/Jangly.Mark
Skype : Jangly Mark (feel free to call me)

User avatar
indiehorse
Posts: 1939
Joined: Mon Oct 01, 2007 10:50 am
Last.fm: http://www.last.fm/user/
Location: Nottingham
Contact:

Re: Help with HTML

Post by indiehorse » Wed Jun 03, 2009 1:04 pm

Jangloid Mark wrote:It's for coding in the Firefox extension, Stylish, so, as far as I'm aware, it can't use PHP. For the same reason, I can't use a Javascript code to do this....
Well then, no, you can't do it purely using CSS.

Jangloid Mark
Posts: 1458
Joined: Mon Oct 01, 2007 6:38 pm
Last.fm: http://www.last.fm/user/JanglyMark
Location: Swansea, Wales
Contact:

Re: Help with HTML

Post by Jangloid Mark » Wed Jun 03, 2009 1:13 pm

indiehorse wrote:
Jangloid Mark wrote:It's for coding in the Firefox extension, Stylish, so, as far as I'm aware, it can't use PHP. For the same reason, I can't use a Javascript code to do this....
Well then, no, you can't do it purely using CSS.
BAH!!! Oh well, thank you both for your help...
Love is a weakness in the knees...it's dangerous on the stairs...

Bandcamp : https://janglymark.bandcamp.com/
Facebook : http://www.facebook.com/Jangly.Mark
Skype : Jangly Mark (feel free to call me)

User avatar
Martijn
Posts: 1260
Joined: Sat Oct 13, 2007 8:27 pm
Last.fm: http://www.last.fm/user/thinksmall
Location: Exeter
Contact:

Re: Help with HTML

Post by Martijn » Wed Jun 03, 2009 1:19 pm

indiehorse wrote:
Jangloid Mark wrote:It's for coding in the Firefox extension, Stylish, so, as far as I'm aware, it can't use PHP. For the same reason, I can't use a Javascript code to do this....
Well then, no, you can't do it purely using CSS.
Well, my second solution would still work, as long as you have a website to host the images and the Php randomizer script.

Jangloid Mark
Posts: 1458
Joined: Mon Oct 01, 2007 6:38 pm
Last.fm: http://www.last.fm/user/JanglyMark
Location: Swansea, Wales
Contact:

Re: Help with HTML

Post by Jangloid Mark » Wed Jun 03, 2009 1:29 pm

Martijn wrote:Well, my second solution would still work, as long as you have a website to host the images and the Php randomizer script.
Hmmm....ok, I'll give it a go...it's for one person, so, I shouldn't get server overload....I could insert a line of complete rubbish to stop it working for anyone else who happens to download it, and tell my friend to take out said line....

Now over to photoshop to make a load of photos red monochrome (like the Sinister cover...). I tend to want to pull my hair out when trying to wrestle with photoshop...today is going to be fun!!!
Love is a weakness in the knees...it's dangerous on the stairs...

Bandcamp : https://janglymark.bandcamp.com/
Facebook : http://www.facebook.com/Jangly.Mark
Skype : Jangly Mark (feel free to call me)

Jangloid Mark
Posts: 1458
Joined: Mon Oct 01, 2007 6:38 pm
Last.fm: http://www.last.fm/user/JanglyMark
Location: Swansea, Wales
Contact:

Re: Help with HTML

Post by Jangloid Mark » Fri Jan 29, 2010 3:11 am

Does anyone know much about the new <video> function in HTML5?

Two questions for anyone that does....

1. What is the tag for fullscreen? (IE so that a video plays in fullscreen automatically)

2. What is the tag for detecting when an embedded video had finished? (What I want to do is to start a subsequent video as soon as the previous one has reached the end).
Love is a weakness in the knees...it's dangerous on the stairs...

Bandcamp : https://janglymark.bandcamp.com/
Facebook : http://www.facebook.com/Jangly.Mark
Skype : Jangly Mark (feel free to call me)

User avatar
indiehorse
Posts: 1939
Joined: Mon Oct 01, 2007 10:50 am
Last.fm: http://www.last.fm/user/
Location: Nottingham
Contact:

Re: Help with HTML

Post by indiehorse » Fri Jan 29, 2010 3:15 pm

Jangloid Mark wrote:Does anyone know much about the new <video> function in HTML5?

Two questions for anyone that does....

1. What is the tag for fullscreen? (IE so that a video plays in fullscreen automatically)

2. What is the tag for detecting when an embedded video had finished? (What I want to do is to start a subsequent video as soon as the previous one has reached the end).
The specification of HTML 5 is not finalised yet.
There is no "fullscreen" attribute. If you wish to change the specify the size of a video, use CSS (width: 100%; height: 100%);
You cannot, as far as I am aware, detect when a video has finished playing, through HTML.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest