@charset "utf-8";
a {
padding:1px 15px 1px 0;
background:no-repeat right center;
}
a[href$=".zip"] {
background-image:url(img/i-zip.gif);
}
* html a.zip {
background-image:url(img/i-zip.gif);
}
a[href$=".xls"] {
background-image:url(img/i-xls.gif);
}
* html a.xls {
background-image:url(img/i-xls.gif);
}
a[href$=".doc"] {
background-image:url(img/i-doc.gif);
}
* html a.doc {
background-image:url(img/i-doc.gif);
}
a[href$=".pdf"] {
background-image:url(img/i-pdf.gif);
}
* html a.pdf {
background-image:url(img/i-pdf.gif);
}
a[href^="http"] {
background-image:url(img/i-outsite.gif);
}
* html a.outsite {
background-image:url(img/i-outsite.gif);
}
a[href^="http://www.rasen-d.net"] {
/*実際に使用する場合は「http://www.rasen-d.net」の記述を使用サイトのURLにあわせてください*/
background-image: none;
padding: 0;
}
* html a.mysite {
background-image: none;
padding: 0;
}
a[href^="mailto"] {
background-image:url(img/i-mail.gif);
}
* html a.mailto {
background-image:url(img/i-mail.gif);
}
* html a{ /* IE6用 */
behavior: expression(
this.className += this.getAttribute("href").match(/^http.*/) && (!this.getAttribute("href").match("rasen-d.net")) ? " outsite" : "",
this.className += (this.getAttribute("href").match("^http://www.rasen-d.net")) ? " mysite" : "",
this.className += this.getAttribute("href").match(/\.zip$/) ? " zip" : '',
this.className += this.getAttribute("href").match(/\.xls$/) ? " xls" : '',
this.className += this.getAttribute("href").match(/\.doc$/) ? " doc" : '',
this.className += this.getAttribute("href").match(/\.pdf$/) ? " pdf" : '',
this.className += this.getAttribute("href").match(/^mailto.*/) ? " mailto" : "",
this.style.behavior = "none");
}
