Poster: A snowHead
|
phpWeather allows you to put the current weather at your local airport (it uses METARs) on your website.
|
|
|
|
|
Obviously A snowHead isn't a real person
Obviously A snowHead isn't a real person
|
|
|
Well, the person's real but it's just a made up name, see?
Well, the person's real but it's just a made up name, see?
|
Or at snow-forecast - just go to a resort's weather page and copy the html below the forecast. Incidentally, does anyone know of a way to resize this? I can trim it but I can't change the overall size of it and it's too big.
|
|
|
|
|
brian
brian
Guest
|
I spent a happy couple of hours trying to write a screenscraper to get some raw text off snow-forecast for cheapo download to a mobile.
Then realised my free webspace can't run scripts, d'oh !
|
|
|
|
|
Anyway, snowHeads is much more fun if you do.
Anyway, snowHeads is much more fun if you do.
|
ben wright wrote: |
Or at snow-forecast - just go to a resort's weather page and copy the html below the forecast. Incidentally, does anyone know of a way to resize this? I can trim it but I can't change the overall size of it and it's too big. |
That's a forecast, this is an observation.
(NB that's the products discussed, not your and my posts).
|
|
|
|
|
You'll need to Register first of course.
You'll need to Register first of course.
|
skanky wrote: |
That's a forecast, this is an observation.
|
I thought that last year the were conservative if anything in their forecasts. Maybe stung by peoples critisms from previous years.
|
|
|
|
|
|
ben wright wrote: |
Or at snow-forecast - just go to a resort's weather page and copy the html below the forecast. Incidentally, does anyone know of a way to resize this? I can trim it but I can't change the overall size of it and it's too big. |
Do you mean displayed like this on your page
http://www.snow-forecast.com/resorts/La-Plagne.3dayfree.shtml
It will not re-size to drop off the ads.
Depending on your website software you may be able to put it into a frame and then bring it down by re/sizing the frame?
|
|
|
|
|
|
OK techies,my wbestoe is created from a template, no htnl involved. How do i add the weather thingy. Will it work if I open up my site in FrontPage and then put in the code?
Maybe I should try it................
|
|
|
|
|
You'll get to see more forums and be part of the best ski club on the net.
You'll get to see more forums and be part of the best ski club on the net.
|
|
|
|
|
|
snowHeads are a friendly bunch.
snowHeads are a friendly bunch.
|
Helen Beaumont, I just got the code from the Snow-forecast page. They offer it free and it's for 4 or 5 days. Look on my welcome page. Just cut and paste. The only problem would be with Frontpage, but it should be fine. OK you only get what they give you, and you can't fiddle with it, but hey! it's the weather in your resort for your peeps to look at.
|
|
|
|
|
And love to help out and answer questions and of course, read each other's snow reports.
And love to help out and answer questions and of course, read each other's snow reports.
|
Hoppo, horrible. I have been using a really strange keyboard at work this week, and my typos on my laptop the following evening have been awful!!!!!
|
|
|
|
|
|
boredsurfin, you can trim the links from the bottom as you can reduce the image from the right and from the bottom by using something along the lines of:
<iframe style="overflow:hidden;border:none" allowtransparency="true"
width="475" height="170" align="left"
src="http://www.snow-forecast.com/resorts/Foux-d-Allos.3dayfree.shtml"
scrolling="no" frameborder="0"></iframe>
but I can't find a way to scale it or to trim it from the top or the left.
|
|
|
|
|
You know it makes sense.
|
You could do this to trip the stuff form the top and enter your own title:
Code: |
<div style="position:relative;">
<div style="position:absolute; top:0; left:0; background-color:#fff; z-index:1; width:475px; height:55px; text-align:center; font-size:14px; font-weight:bold; color:#c00; line-height:50px;">Enter Your Own Title Here</div>
<div style="position:absolute; top:0; left:0; z-index:-1;"><iframe allowtransparency="true" width="475" height="170" style="overflow:hidden;border:none;" scrolling="no" frameborder="0" align="left" src="http://www.snow-forecast.com/resorts/Foux-d-Allos.3dayfree.shtml"
></iframe></div>
</div> |
Last edited by You know it makes sense. on Wed 4-10-06 10:32; edited 1 time in total
|
|
|
|
|
Otherwise you'll just go on seeing the one name:
Otherwise you'll just go on seeing the one name:
|
PM Jarvski for tecchie nerdedry - he does it for a living
A
|
|
|
|
|
Poster: A snowHead
|
That's pretty good MhicEasmuint, but I'd like to point out a couple of things.
As well as removing their ads you have effective removed all of snowforecast.com's branding as well - while this is clever it wouldn't be considered good netiquette.
The iframe method will draw data live from their site each time your page is displayed so their stats will show referals by your site. If I was them, I might feel a little dis-chuffed at my ads not being displayed but I'd be really grumpy about someone using my data, my bandwidth and indeed r+d without even a nod of recognition and might be moved to make a fuss.
With this in mind, I've tweaked your code a little:
Code: |
<div style="position:relative; height:170px">
<div style="position:absolute; top:0; left:0; z-index:1; width:475px; height:55px; text-align:center; font-size:14px; font-weight:bold; color:#c00; line-height:50px;"><a href="http://www.snow-forecast.com/worldwide_accumulation.shtml" target="_blank">Your Own Title Here</a><div style="position:absolute; top:0; left:0; z-index:-1; "><iframe allowtransparency="true" width="475" height="170" style="overflow:hidden;border:none;" scrolling="no" frameborder="0" align="left" src="http://www.snow-forecast.com/resorts/Foux-d-Allos.3dayfree.shtml"></iframe>
</div></div></div> |
Produces
|
|
|
|
|
Obviously A snowHead isn't a real person
Obviously A snowHead isn't a real person
|
admin, never mind being dis-chuffed, I reckon they might send out a rather nasty email if they found out!
|
|
|
|
|
Well, the person's real but it's just a made up name, see?
Well, the person's real but it's just a made up name, see?
|
But is it possible to re-size it so it doesn't take up so much room i.e. keep all the content but make it only half as wide and half as high?
|
|
|
|
|
You need to Login to know who's really who.
You need to Login to know who's really who.
|
Yeah I totally agree, I was kind of suggesting a method of trimming from the top which ben wright wasn't sure of.
Adjusted to leave the logo but use your own title:
Code: |
<div style="position:relative; overflow:hidden;">
<div style="position:absolute; top:0; left:143px; background-color:#fff; z-index:1; width:330px; height:55px; text-align:center; font-size:14px; font-weight:bold; color:#c00; line-height:50px; font-family:Arial, Helvetica, sans-serif">Enter Your Own Title Here</div>
<div style="position:absolute; top:0; left:0; z-index:-1;"><iframe allowtransparency="true" width="475" height="170" style="overflow:hidden;border:none; " scrolling="no" frameborder="0" align="left" src="http://www.snow-forecast.com/resorts/Foux-d-Allos.3dayfree.shtml"
></iframe></div>
</div> |
ben wright, off the top of my head I don't think ti could be re-sized
|
|
|
|
|
Anyway, snowHeads is much more fun if you do.
Anyway, snowHeads is much more fun if you do.
|
MhicEasmuint, I suspected as much. It would help if the snow forecast logo was shifted to the right so it's left edge was level with the max/min but that's something that would need to be sorted out at their end.
|
|
|
|
|
You'll need to Register first of course.
You'll need to Register first of course.
|
As someone who has a complete mental block when it comes to things like this can I just ask one probably very obvious question - in order to make this specific to your particular resort do you just put your resort name in before '.3dayfree.'
|
|
|
|
|
brian
brian
Guest
|
|
|
|
For anyone who would like Snow included in their forecast, and in a more compact format, we've just published code so you can take a "Mini Snow Forecast" from j2ski. Go to the Snow Forecast page for the particular resort (e.g. La Plagne ) and scroll down to the blue box. Cut and paste all the code from the box into your own page.
Please don't modify the code, but do let me know if anything breaks (PM or email please) as this is hot off the press...
|
|
|
|
|
You'll get to see more forums and be part of the best ski club on the net.
You'll get to see more forums and be part of the best ski club on the net.
|
J2Dave, Thanks Dave
On my site and working already
|
|
|
|
|
|
boredsurfin wrote: |
On my site ... |
Wot site?
|
|
|
|
|
snowHeads are a friendly bunch.
snowHeads are a friendly bunch.
|
|
|
And love to help out and answer questions and of course, read each other's snow reports.
And love to help out and answer questions and of course, read each other's snow reports.
|
boredsurfin, Aaah, I see, or rather I don't
|
|
|
|
|
|
|
|
You know it makes sense.
|
brian, Thanks!
|
|
|
|
|
|