iframe question again, pretty please?
Ask us questions relavent to Web Design and Computers.
Also support for Bluepearl Design and webclans.net hosting.
|
12-15-2005, 08:40 AM
|
#1 (permalink)
|
Title: Bluepearl Veteran Join Date: May 2005 Location: Mobile, AL Age: 47 Posts: 1,035
Rep Power: 5  | iframe question again, pretty please? Okay, another iframe question: I'm trying to create a site with a similar design as the one I posted the link on before, the one with the iframe on top of the background in the table...
Can you guys tell me how to do that???? Pleeeease? lol
I have the image in the table sliced and the one where the text (iframe info) will be has the image set to background. So how to I implement the iframe where it doesn't put a background on top of the cell background??
Thanks.  |
| |
12-15-2005, 01:30 PM
|
#2 (permalink)
|
Title: Founder/Admin Join Date: Jan 2004 Location: Sydney, Australia Age: 28 Posts: 8,907
Rep Power: 10  | Re: iframe question again, pretty please? to add the background to your iframe u just add an internal stylesheet to the page you r calling.
For example your iframe looks like this: Code: <iframe src="page.html" name="page" width="145" height="393" noresize frameborder="0"></iframe>
The above is calling upon the file page.html to add to your iframe, so the page.html would look like this. HTML Code: <style>
BODY {
background-image: url(images/frame2.jpg);
overflow: auto;
background-color: #FEF7CB;
background-repeat: no-repeat;
background-attachment: fixed;
color:#800080; FONT-FAMILY: Geneva, Arial, Helvetica; FONT-SIZE: 11px; LINE-HEIGHT:16pt;
}
</style>
<script language=javascript type="text/javascript">
<!--
if (top.location == self.location) {
top.location.href = "index.html"
}
// -->
</script>
<p>Welcome to Griffins house of pain</p> Hope this helps
Also i added some javascript which i use when doing sites with iframes. Sometimes search engines will index your iframes and when a user clicks on a search engine link to your site they will be sent to the iframe and not the entire page. All this javascript does is check for this and will re-load the page if needed  |
| |
12-15-2005, 06:46 PM
|
#3 (permalink)
| |
Title: Bryan Join Date: Jan 2004 Location: Dundee Age: 21 Posts: 3,547
Rep Power: 8  | Re: iframe question again, pretty please? You beat me to the punch  |
| |
12-16-2005, 12:42 AM
|
#4 (permalink)
|
Title: Bluepearl Veteran Join Date: May 2005 Location: Mobile, AL Age: 47 Posts: 1,035
Rep Power: 5  | Re: iframe question again, pretty please? thanks guys... not exactly sure how that works, but.... this is the effect I'm going for: http://jamesdstark.com
So Sean, does your code just place the text over the bg image? Yeah, I know... I'm totally lost as usual. lol
It's going here: http://www.autumnwhisperstome.com/au...sperstome.html
Last edited by autumn whispers2me; 12-16-2005 at 12:49 AM.
|
| |
12-16-2005, 01:33 AM
|
#5 (permalink)
|
Title: Bluepearl Veteran Join Date: May 2005 Location: Mobile, AL Age: 47 Posts: 1,035
Rep Power: 5  | Re: iframe question again, pretty please? Aw man! I just realized something! I looked at that site again, and that bg image is ONE image, not a sliced one! Ugh.. I sliced mine. Shoooooooot.
I guess the benefit with no slices is that the iframe won't split any cells apart.
Shoooooooot! So should I change what I have to one image instead of a sliced one?
Confuzzed. |
| |
12-16-2005, 03:53 AM
|
#6 (permalink)
|
Title: Ipood Join Date: Nov 2004 Location: belgium west-flandres Age: 19 Posts: 4,436
Rep Power: 9  | Re: iframe question again, pretty please? paste them back together in photoshop, LOL xD |
| |
12-16-2005, 07:28 PM
|
#7 (permalink)
|
Title: Founder/Admin Join Date: Jan 2004 Location: Sydney, Australia Age: 28 Posts: 8,907
Rep Power: 10  | Re: iframe question again, pretty please? if the image is not cut it means he is using a transparant iframe. Code: allowtransparency="true" |
| |
12-16-2005, 10:58 PM
|
#8 (permalink)
|
Title: Ipood Join Date: Nov 2004 Location: belgium west-flandres Age: 19 Posts: 4,436
Rep Power: 9  | Re: iframe question again, pretty please? ... ok, that works 2... |
| |
12-17-2005, 12:59 AM
|
#9 (permalink)
|
Title: Bluepearl Veteran Join Date: May 2005 Location: Mobile, AL Age: 47 Posts: 1,035
Rep Power: 5  | Re: iframe question again, pretty please? lol So I don't have to use just one image? Is one better than a sliced image? Thanks, guys. You rule as always. |
| |
12-19-2005, 03:43 PM
|
#10 (permalink)
|
Title: Founder/Admin Join Date: Jan 2004 Location: Sydney, Australia Age: 28 Posts: 8,907
Rep Power: 10  | Re: iframe question again, pretty please? both ways will work Autumn, but i am not sure if iframe transparancy works in all browsers, i could be wrong |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT +11. The time now is 09:05 PM. |