This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft Publisher > March 2005 > Instructions to insert HTML Fragment
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Instructions to insert HTML Fragment
|
|
|
| I am trying to add a fragment of HTML that would open a new
browser page when the user clicks on a picture. Mostly because
I have PDF's in my site, and it would be simpler for the users to
open a new window and compare documents and the like.
I have looked around have haven't been successful at finding good
instructions on how to do this. I could probably figure out how to
insert a TEXT Link, but I have images that I would like to link to
open a new browser window.
I know that the code is <a href=”linkfile.html” target="_blank">
and then you have to close the </a>. Now do I have to have these
both as the same fragment, and should I just add the <img> tag
in there while I am going, or is there an easier way? If so I would
really appreciate some help.
Are there detailed instructions out there on how to add HTML
Fragments and position them in the web page to work correctly,
and all that jazz?
Thanks,
Bryan
| |
| David Bartosik [MSFT MVP] 2005-03-23, 4:23 am |
| There should be numerous HTML help sites that can assist you with html code,
but if you can't locate one I suggest http://www.htmlgoodies.com
Such a reference would teach you that a link looks like:
<a href="linkfile.html" target="_blank">put your text to hyperlink here</a>
and that an image tag looks like:
<img src="lookatme.jpg" border="0">
and that if you wanted to put a hyperlink on an image rather then text that
you would simply replace the text with the image tag.
As far as using the code frag dialog, there really isn't any magic to it. I
cover it a few times on http://www.publishermvps.com . Basically draw the
object and type or paste the code in. Draw it on the page where you want the
output to be and size the object to about how big the output will be. If you
have multiple links (as in a menu) then just code them all in one fragment,
I believe the site has an article on that very thing.
David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com
"B-Lis" <BLis@discussions.microsoft.com> wrote in message
news:164A030B-6BDF-4FC1-99FC-F3C04988CB68@microsoft.com...
>I am trying to add a fragment of HTML that would open a new
> browser page when the user clicks on a picture. Mostly because
> I have PDF's in my site, and it would be simpler for the users to
> open a new window and compare documents and the like.
>
> I have looked around have haven't been successful at finding good
> instructions on how to do this. I could probably figure out how to
> insert a TEXT Link, but I have images that I would like to link to
> open a new browser window.
>
> I know that the code is <a href="linkfile.html" target="_blank">
> and then you have to close the </a>. Now do I have to have these
> both as the same fragment, and should I just add the <img> tag
> in there while I am going, or is there an easier way? If so I would
> really appreciate some help.
>
> Are there detailed instructions out there on how to add HTML
> Fragments and position them in the web page to work correctly,
> and all that jazz?
>
> Thanks,
> Bryan
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|