Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Iframe Image link border problem.

images php coding issues or problems here.

Moderators: macek, egami, gesf

Iframe Image link border problem.

Postby swifteruk » Fri Dec 09, 2011 1:06 am

I have an Iframe calling a random image from a gallery page. Example here, random image is in right hand sidebar. http://retiredgreyhounds.info/site_new/default.html

Image is called into the Iframe via a php script

Code: Select all
<?php @readfile('http://hovedogs.co.uk/gallery/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title&g2_linkTarget=_top&g2_link=http://retiredgreyhounds.info/site_new/gallery/available.html'); ?>

This is designed to open the gallery to view the specific album which works fine.
The only issue I have is that within IE8 and probably other versions the images in the Iframe are rendered with a hyperlink border that I want to get rid of. It does not seem to be the case when viewing in other browsers such as Safari, Opera or Mozilla.
I have tried adding various codes into the gallery css file but this seems to have no effect at all. Is their a "border=none" code that the Iframe code will accept and would it stop it?
Has anyone any ideas how to stop this happening please?

Thanks in Advance...Mike.
swifteruk
New php-forum User
New php-forum User
 
Posts: 2
Joined: Fri Dec 09, 2011 12:59 am

Re: Iframe Image link border problem.

Postby swifteruk » Fri Dec 09, 2011 4:42 pm

I finally found the solution.

The Iframe is calling a php script. http://retiredgreyhounds.info/site_new/imageblock.php

Adding the css into this file itself like so provided the remedy that eluded me for so long.

Code: Select all
<html>
<head>
<style type="text/css">
.giThumbnail {border: none;}
</style>
</head>
<body><?php @readfile('http://hovedogs.co.uk/gallery/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title&g2_linkTarget=_top&g2_link=http://retiredgreyhounds.info/site_new/gallery/available.html '); ?>
</body>
</html>
swifteruk
New php-forum User
New php-forum User
 
Posts: 2
Joined: Fri Dec 09, 2011 12:59 am


Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.