Jump to content

[SOLVED] Random (Head) Title


joemamahunt

Recommended Posts

This may be the wrong board and not even made using JavaScript but..

 

 

On this website: http://littlegreenfootballs.com/weblog/

They have a random messege displaying in the <title>.

 

When you View Source you find also a JavaScrip looking like this:

<script language="Javascript" type="text/javascript">
<!--
var axel = Math.random() + "";
var ord = axel * 1000000000000000000;
//-->
</script>

Which to me looks like the randomizer code.

 

 

How can I do something similar to this on my own website?

Link to comment
https://forums.phpfreaks.com/topic/49272-solved-random-head-title/
Share on other sites

My guess would be either from a MySQL database or a PHP page, however linked by a JavaScript code.

 

But I don't know anymroe than you do of that website or the source. So I just want to know how I could do something similar to that, that would give me the same results.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.