Add weblink as watermark to image - asp.net

I am presently working for watermarking site and I have done completely and everyting is working fine.Now I would like to add a weblink to image as watermark instead of text.
I have tried by taking a hyperlink and adding to Image but it just draws the text and dosen't add it as a URL.
Is it possible to do so?I so how can I achieve this?
This is how I tried to do it:
pth.AddString(txtLink.NavigateUrl, New FontFamily(DropFont.SelectedValue), 0, Integer.Parse(DropFontSize.SelectedValue), New Point(left, top), StringFormat.GenericTypographic)

Two approaches come to mind:
Use anchor elements - <a> around your images with the appropriate link.
Use image maps with your images.
Images are images - they don't have links embedded in them that you can click on - you need something extra in order to make them clickable.

Related

Can you display an image with just CSS?

I'm making externally hosted CSS files for use by other people. I want to be able to create a small logo in the bottom left corner that links back to my page. Is this possible using just CSS? I cannot use HTML for the image/link because people can and will remove my credit.

Enhanced image plugin not working correctly when custom styles have been applied

For my website we use custom style sheets that are stored locally on our server and are injected into the webpages. However when i add them to CKEditor and then attempt to resize or move an image with the enhanced image plugin they cannot be resized or moved at all. Has anyone encountered this problem before? Is there anyway around it?
edit: So i add my css files using
config.contentsCss = ['http://fonts.googleapis.com/css?family=Droid+Sans',
'http://fonts.googleapis.com/css?family=Bree+Serif',
'http://fonts.googleapis.com/css?family=Droid+Sans+Mono',
'http://192.168.0.50/css/new/all.css?v=1" media="all',
'http://192.168.0.50/css/new/templates.css?v=1',
'http://192.168.0.50/css/pre_review/colors.css?v=1',
'http://192.168.0.50/css/pre_review/paged_test.css?v=2',
'http://192.168.0.50/css/pre_review/bootstrap.min.css?v=1',
'http://192.168.0.50/css/pre_review/main.css?v=1',
'text/css'];
I have also installed the Enhanced Image plugin to allow me to resize and move images around. however when i insert an image on to the page the source looks like
<p><img alt="" height="239" src="http://icons.iconarchive.com/icons/yellowicon/game-stars/256/Mario-icon.png" width="239" /></p>
when i originally set the image width and height in the popup panel i set the values to 2 and 2, these values do nothing to edit the actual size of the image. It still displays at the full size of 239x 239.
I know that it is my added styles that are causing this error as it works fine without them, However i do need them. is there anyway around this without having to remove the styles?
First of all, your contentsCss has some weird parts like the last item or this 'http://192.168.0.50/css/new/all.css?v=1" media="all'. Please verify that all this works. Incorrect rules may affect CKEditor.
Second, the issue may be very simple - your CSS most likely affect widgets styling. Disable loading your CSS files one by one and see which one breaks the Enhanced Image plugin. Then find the rule that breaks it and then improve the rule so it does not affect images.

Lightbox 2 on html site - next/previous gifs not showing

I'm having problems getting the Next/Previous images to show up in lightbox 2. No other answers here about this have solved this for me so I don't know what I'm still missing.
It almost seems like the "outer container" (I think that's what it's called) that the image "sits" inside of isn't wide enough for the Next/Prev gifs to show up. The link is there; i.e., when you hover over the right left sides of the images and click, it will go to the next and previous images.
I would like for the next/previous images to be:
1. visible all the time
2. located below the image x of x text and above the Close - or - ideally centered at the bottom of the image:
Image 3 of x
Prev Close Next
I don't necessarily have to use images per say, simple text links will be fine.
If I have to change something in another file besides the css, please let me know which one because I am relatively clueless when it comes to programming language. ROFL
What did work is to remove all instances of, "../" in the lightbox.css file. For example, change, "../img/prev.png" to "img/prev.png". Basically go through the lightbox.css file and remove the "../" where ever it occurs.
I had the same issue the second time I implemented Lightbox. In my case, I've changed all the occurrences where the gifs are linked from
content: url(../img/close.png)
to
content: url(http://www.../img/close.png)
Now it works.
I had the same problem, nothing worked, finally got it to show the buttons by adding<!doctype html>to the first line of your html page, just before the head
I think the solution is just adding a gallery name in the "rel" tag.
So change this:
rel="lightbox"
into this:
rel="lightbox[gallery]"
in each of your image links.
Worked for me!
None of the above suggestions worked for me.
The problem is the background URLs in lightbox.css - these URLs link to nothing. So I downloaded the images and amended the URL's in lightbox.css. Here's an example:
Default:
background: url(../images/close.png) top right no-repeat;
Amended:
background: url(../../images/lightbox2/prev.png) top right no-repeat;
if you go in the lightbox.min.css file you can see that this line ".lb-nav a.lb-next{width:64%;right:0;float:right;background:url(../images/next.png)".
Maybe the "next.png" don't be in the default directory "images" so just change the path to your "next.png".
Example "background:url(..path/to/my/images/next.png) for the next button.
Do the same for the others buttons.
[Ctlr + F] and look for "next.png", then "previous.png", then "loading.png", and finally "close.png" and put the right path so that you can see these buttons.
just copy arrows and close icons from
lightbox2-dev (1)\lightbox2-dev\dist\images
to your project and link proper. it will 100% work.
I had The Same Problem,To Make The Arrows and Close Button Show The Key is the background URLs in lightbox.min.css Make Sure They Are Pointing to The Right Directory where the images close.png, prev.png, next.png & loading.gif are stored, for me i had To Copy them from lightbox2-master\dist\images folder to my projects images folder and made Sure that in the lightbox.min.css file, the line of code background:url(../images/close.png); background:url(../images/prev.png); background:url(../images/next.png); background:url(../images/loading.gif); points to the images folder where the Arrows and close button images are stored and each referenced respectively

Various Adobe Fireworks CS4 queries

I am new to Fireworks CS4 and keen to learn to use it right but I am having difficulty understanding the whole slicing and exporting mechanism, so that I can also use in Dreamweaver CS4.
What I have is a header banner image where I also have the name of the site to the left of this header banner.
On this same header image, I want to place two buttons (with rollover effects if possible), to the top right area of the header image, with links to another URL.
Now the things that I am unsure how to do are based on the above description are:
1) How can I make the name of the site section only, to the left of the banner as a link to a url when the user hovers over the name part only, the mouse hand turns into a pointer and gets redirected to url
2) The same goes for the two buttons that I have created as two individual symbols?
3) How can I slice the above two queries, so that I can export into Dreamweaver, so that all the required code comes across with all the desired effects, that is, when previewing in Firefox, all hovering on site name and two buttons work as required?
I am unsure how to slice it? Do I have to assign hotspots to the sections? I am unsure how to export it.
There is a slice layer in Fireworks. It is always the top layer. It lets you draw shapes over parts of your graphic, which show up in translucent green. When you click on one, you have the option of adding a URL and other parameters of a link. At that point, you have the option of exporting as sliced images, an HTML page, etc. If exported as HTML, the images will be contained in anchor tags with the URLs you gave them. Or you can just export the slices and assign the links in Dreamweaver.

Change background of image maps on mouse hover

In my website I have an image as the navigation bar and have created hotspots to link them to different pages. The problem is since the text is a part of the image, I cannot change the style of the text on hover. Whereas I want the text/the hotspot to stand out on mouseover, so I learn the background color could be changed on mouse over. Is that possible? Is there a way to do that in CSS, using the area or maps. If Javascript is to be used, could someone help me out with it.
Is there a reason you've used a single image as the nav bar?
Instead of a single image with hotspots, I'd use an individual image for each navigation link. That way you can easily change the image (or use CSS image positioning) on hover. This is described here:
http://css-tricks.com/video-screencasts/7-three-state-menu/
along with many other places I'm sure.
I don't think it's a good idea to use neither image maps nor individual images.
Instead, use CSS sprites: a single image file, add that as a background image to the menu links, but position the background images differently. See this Line 25 tutorial for more information.

Resources