We'd like to remind Forumites to please avoid political debate on the Forum. This is to keep it a safe and useful space for MoneySaving discussions. Threads that are - or become - political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
HTML question - looping images
Comments
-
aha! a code lifter website, sounds just what I need!
Yes programming and web design does appear to be a cut and paste job when you first begin, and then a copy and amend job and hopefully eventually a 'write your own'. For the level of stuff I will need to do, 'copy and amend' is basically as far as I need to go with HTML, but I am up to the 'write your own' in C# programming which is quite an achievment for a year's worth of part time hobby for someone who had no idea what a variable was 15 months ago!
Bluboy - I would love nothing more than to show off my very sophisticated copy and paste job but unfortunately it is my work webpage so I do not feel comfortable giving the details out here. It does look smashing though if I do say so myself LOL
:ABeing Thrifty Gifty again this year:A
0 -
I do something different on my blood bikes charity website - http://www.freewheelers.org.uk - the images on the right side of each page change randomly whenever you reload a page or go to one of the other pages on the site. I use a bit of javascript that simply picks one of a number of images at random. The key thing for me is that the image never changes while you are viewing a page - that would annoy the hell out of me.
Here is the code I use to give you an idea:<script type="text/javascript"> var hospital = new Array('oncology.jpg','frenchay2.jpg','minehead.jpg','BRI.jpg','paulton.jpg','musgrove.jpg','bristol-childrens.jpg','frenchay.jpg','ruh.jpg','weston.jpg'); var num = Math.floor((Math.random() * hospital.length)); document.writeln('<img class="floatclear" src="/images/right-side/' + hospital[num] + '" alt="Hospitals served by Freewheelers" />') </script>
0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 347.9K Banking & Borrowing
- 252K Reduce Debt & Boost Income
- 452.2K Spending & Discounts
- 240.3K Work, Benefits & Business
- 616.5K Mortgages, Homes & Bills
- 175.4K Life & Family
- 253.6K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 15.1K Coronavirus Support Boards