Lame Question: Creating graphics links that a user can "copy short

M

M Murdock

Hello,

I want to add the small orange "RSS" graphic to my web page to allow my
readers to click on it as part of the process of subscribing to my Rss feed.

If I add a piece of text to my web page and then assign a hyperlink to that
piece of text pointing to myfeed.rss, then when my user right-clicks on this
link, they will be given the option to "Copy Shortcut," which they can then
paste into their Rss Reader. And this works fine, except the link is text and
I want the standard orange graphic.

However, if I add this graphic to my page and assign it a hyperlink to
myfeed.rss, then when my user right-clicks on this link, they no longer have
the option to "Copy Shortcut." When my user right clicks on this link they
get:

- Save Background as ...
- Set as Background
- Copy Background
- Set as Desktop Item
- Select All
- Create Shortcut
- Add to Favorites
- View Source
- Encoding
- Print
- Refresh
- Properties

Everyplace on the web when I encounter the standard orange "RSS" button,
when I right-click on the button, I get the "Copy Shortcut" option. But not
when I publish my pages from Publisher. Does the HTML filtering cause this?

What should I do?

Thanks!

~Michael.
 
M

MusicMan

If those are the only options you get, then your picture isn't hyperlinked.
Check your code.
 
M

M Murdock

MusicMan said:
If those are the only options you get, then your picture isn't hyperlinked.
Check your code.

My inserted image appears to be hyperlinked. But something weird is going on
related to the vml code that Publisher uses when html filtering is done
during publishing.

I have created a very simple page with Publisher. I started the page from
the "Blank" template and only added a gif image, to which I added a link.

I "published to the web" and then browsed to the page and viewed the source
for the page. The full (and very lengthy) source html is listed below. The
html page source contains a vml-type conditional:

<!--[if gte vml 1]>

which is followed by an href statement:

href="http://mysite.com/RssFeeds/ActiveTasksFeed.rss"

then further down, this conditional is followed by another one:

<![endif]--><![if !vml]>

but the href statement that follows this conditional is an <img> element:

<img
border=0
width=36
height=14
src="index_files/image298.gif" v:shapes="_x0000_s1034">

And I think it is this <img> element that causes my browser to give me the
context menu items that are for an _image_ and not the _URL_ that I want to
treat as a shortcut.

What do you think? How can I turn off html filtering when I publish from
Publisher?

Thanks,

~Michael.

--------- Full HTML Code from Blank Page with 1 inserted GIF ------------


<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<link rel=File-List href="index_files/filelist.xml">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
b\:* {behavior:url(#default#VML);}
..shape {behavior:url(#default#VML);}
</style>
<![endif]-->

<title>Blank</title>
<style>
<!--
/* Style Definitions */
ol
{margin-top:0in;
margin-bottom:0in;
margin-left:.25in;}
ul
{margin-top:0in;
margin-bottom:0in;
margin-left:.25in;}
@page
{size:8.5in 11.0in;}
-->
</style>

<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="3075" fill="f" fillcolor="white [7]"
strokecolor="black [0]">
<v:fill color="white [7]" color2="white [7]" on="f"/>
<v:stroke color="black [0]" color2="white [7]">
<o:left v:ext="view" color="black [0]" color2="white [7]"/>
<o:top v:ext="view" color="black [0]" color2="white [7]"/>
<o:right v:ext="view" color="black [0]" color2="white [7]"/>
<o:bottom v:ext="view" color="black [0]" color2="white [7]"/>
<o:column v:ext="view" color="black [0]" color2="white [7]"/>
</v:stroke>
<v:shadow color="white [4]"/>
<v:textbox inset="2.88pt,2.88pt,2.88pt,2.88pt"/>
<o:colormenu v:ext="edit" fillcolor="black [1]" strokecolor="black [0]"
shadowcolor="white [4]"/>
</o:shapedefaults><o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
</head>

<body link=blue vlink="#660099" style='margin:0'>

<div style='position:absolute;width:7.9319in;height:.9111in'>
<!--[if gte vml 1]><v:rect id="_x0000_s1034"
href="http://mysite.com/RssFeeds/ActiveTasksFeed.rss"
style='position:absolute;left:54pt;top:54pt;width:27pt;height:10.5pt;
z-index:3;mso-wrap-distance-left:2.88pt;mso-wrap-distance-top:2.88pt;
mso-wrap-distance-right:2.88pt;mso-wrap-distance-bottom:2.88pt'
o:preferrelative="t" filled="f" fillcolor="white [7]" stroked="f"
strokecolor="black [0]" o:cliptowrap="t">
<v:fill color2="white [7]"/>
<v:stroke color2="white [7]">
<o:left v:ext="view" color="black [0]" color2="white [7]"/>
<o:top v:ext="view" color="black [0]" color2="white [7]"/>
<o:right v:ext="view" color="black [0]" color2="white [7]"/>
<o:bottom v:ext="view" color="black [0]" color2="white [7]"/>
<o:column v:ext="view" color="black [0]" color2="white [7]"/>
</v:stroke>
<v:imagedata src="index_files/image298.gif" o:title="xml"/>
<v:shadow color="white [4]"/>
<v:path o:extrusionok="f" insetpenok="f"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:rect><![endif]--><![if !vml]><span style='position:absolute;z-index:3;
left:72px;top:72px;width:36px;height:14px'><a
href="http://mysite.com/RssFeeds/ActiveTasksFeed.rss"><img
border=0 width=36 height=14 src="index_files/image298.gif"
v:shapes="_x0000_s1034"></a></span><![endif]>
</div>

</body>

</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top