Msc Final Project

Mouseover to set the image as background (js)

I was trapped in this tiny little bug for several hours: a href=”#” is a must or it will refresh the whole site, then you will never change the background image, never! <!doctype html> <html lang=”en”> <head> <meta charset=”UTF-8″> <title>Document</title> <style>/*this should be an independent CSS*/ body{background:#b8c2f8} img{width:300px;height:300px;} </style> </head> <body> function basename(url){ var loc… Continue reading Mouseover to set the image as background (js)