| | #1 |
| Say it with me... Ommmm Join Date: 2008 Location: Kentucky USA behind my editor screen
Posts: 27
Thanks: 20
Thanked 7 Times in 6 Posts
|
How Do I code a page that will show something new for each visit or refresh. I noticed on a lot of freelance jobs I get, they will say go to this page wwwdotsometing and get a keyword from there...... Well each time the page loads, it shows a fresh "keyword". How can I code a page to offer a new piece of text for each page load. Does this make sense? Is it easy to do. It seems like I did something like this for alternating banner ads in the past, but I can't remember -- and I lost that hard drive |
| |
| | #2 |
| Warrior Member Join Date: 2012
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
|
you can do it with sessions variable you can set a variable that showed text id and when refresh the page control the session variable and increare or decrease id my be also use random number |
|
may map appicaitons haritaaraci.com | |
| |
| The Following User Says Thank You to muratsal For This Useful Post: |
| | #3 | |
| HyperActive Warrior War Room Member Join Date: 2012
Posts: 148
Thanks: 11
Thanked 30 Times in 26 Posts
|
In order to make such dynamic web-sites, you'll generally need to go beyond HTML and JavaScript. This isn't completely true, because with things like JQuery, you can create plenty of dynamic sites, provided that you have another site you can grab information from. But in reality, 99.99999% of all sites that provide any reasonable amount of dynamic content are using a server side language of some sort. You are going to have to learn how to program PHP probably at a minimum (and it is probably one of the easiest if not the most prevalent framework) to accomplish what you'd like to do. Given that it is free, can be edited on notepad, and is supported by virtually all hosting companies, it is an easy choice. Alternatively, you can hire someone to do it for you. | |
| | ||
| |
| | #4 |
| Say it with me... Ommmm Join Date: 2008 Location: Kentucky USA behind my editor screen
Posts: 27
Thanks: 20
Thanked 7 Times in 6 Posts
|
Hi, I am not going to be able to learn PHP in order to alternate an image or link or keyword on an html page. I'm too dumb for that. Thanks anyway. I will try to visit a javascript site or something. I've lost a lot of memory on this for some reason. I appreciate the suggestions, though, so thank for trying to help me out. |
| |
| | #5 |
| Greg Miranda War Room Member Join Date: 2011 Location: San Diego, CA, USA
Posts: 25
Thanks: 1
Thanked 14 Times in 11 Posts
|
With JavaScript (or jQuery), you should be able to randomize the content (or keyword) of the page each time it loads. If you have a large enough list of keywords the odds are pretty small that you will have the same page show up twice in a row.
|
|
Downline built on Auto Pilot. No recruiting required. Click to find out how! CreateSoft Group - Software Development Services | |
| |
|
| Bookmarks |
| Tags |
| coding, items, page, script, show, visit, web, web page |
| |