PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
var unknownlinks=new Array()
unknownlinks[0]="http://google.com"
unknownlinks[1]="http://yahoo.com"
function unknownlink(){
parent.main.window.location=unknownlinks[Math.floor(Math.random()*unknownlinks.length)]
}
When this button is clicked it shows a random link in the iframe called "main":
parent.main.window.location <--- there's no PHP conversion for this. That means that the JS code cannot be fully converted into PHP but some parts only...