Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Using Base Tag with Local Files IE8 and Modern Browser DEMO</title>
- <!-- The name of this file is: test.html -->
- <!-- The location of this HTML file on the hard drive is: C:\temp\html\test.html -->
- <!-- This unusually constructed Base attribute tag uses two rules to have it work for Locally Hosted IE8 Files that are not server based. -->
- <!-- First, the "URL Scheme" is based on "Network Path Reference" which means no Protocol is used. -->
- <!-- Second, the "forward slashes" are changed to "back slashes". It's the syntax IE8 actually expects. -->
- <!-- This entire method is also friendly for modern browsers showing these local files that are not server based. -->
- <base href="\\c:\temp\resources\" />
- </head>
- <body>
- <p>
- <!-- The location of this "image.jpg" on the hard drive is at: C:\temp\resources\image.jpg -->
- <img src="image.jpg" alt="image" />
- </p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement