Instructions to insert HTML Fragment

B

B-Lis

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
 
D

David Bartosik [MSFT MVP]

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
 

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