PDA

View Full Version : Making a web site




Jeffx342
Jan 12, 2004, 05:46 PM
I am making a web site, but I remember seeing "welcome safari users" only the people using safari can see it how do put this on my web page?



wrldwzrd89
Feb 6, 2004, 12:24 PM
If you don't know HTML yet, I would suggest that you learn. HTML documentation is located here (http://www.w3.org/MarkUp/). What you need to do is use an <IMG> tag to embed the image in your web page(s), pointing the src parameter at the location of the image (avoid loading images located offsite if at all possible/save images you want to use to your website's directory - it's faster that way).

wordmunger
Feb 6, 2004, 12:29 PM
I think what you're looking for is a browser check script. Here's a pretty good page describing how to do it (http://javascript.about.com/library/scripts/blbrowsercheck.htm).

Makosuke
Feb 6, 2004, 12:30 PM
Actually, he's asking how to make it so that image is only visible to Safari users.

...which requires some scripting (something called a "browser detection script" to be precice). Do a google search and you should come up with lots of examples.

wordmunger
Feb 6, 2004, 12:44 PM
Dreamweaver has a browser check function, so another way to do it (assuming you're using Dreamweaver) is to use the "behaviors" dialog.

michaelrjohnson
Feb 6, 2004, 01:20 PM
...and then create the graphic yourself

janey
Feb 6, 2004, 02:17 PM
<script type = "JavaScript">
var SafariMessage ="Welcome Safari User!"
var NoSafariMessage = "you evil non-Safari user !!!!"
if (navigator.userAgent.indexOf('Safari') != -1) {
document.write(SafariMessage);
} else {
document.write(NoSafariMessage);
}
</script>
something like that...should work for images too...

varmit
Feb 6, 2004, 11:00 PM
http://ducktapeandglue.no-ip.org

only works to shows in safari, no one sees the evil part though. Only seemed to work in IE under the mac, i don't think it shows on PCs