Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2009, 07:55 PM
dxflw dxflw is offline
 
Join Date: May 2008
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Iframe & image to the front..

i want to add a iframe code to the forumhome but if the iframe website is loaded i to see a image to the front of the website..
How do i that?

i.e.:
Code:
<IFRAME name="box" src="http://google.com" scrolling="auto" width="800" height="400"> <p>Your browser doesn't support frames. Click <a href="http://google.com" target="_blank">here</a> to view the page.</p> </IFRAME>
Reply With Quote
  #2  
Old 05-05-2009, 08:06 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dxflw View Post
i want to add a iframe code to the forumhome but if the iframe website is loaded i to see a image to the front of the website..
How do i that?

i.e.:
Code:
<IFRAME name="box" src="http://google.com" scrolling="auto" width="800" height="400"> <p>Your browser doesn't support frames. Click <a href="http://google.com" target="_blank">here</a> to view the page.</p> </IFRAME>
You mean something like this


Code:
<DIV ALIGN=CENTER>
<IFRAME name=stbbox src="http://google.com" width="100%" height="200">
<p>Your browser doesn't support frames. Click <a href="http://www.ukbusinesslive.co.uk/forum/index.php" target="_blank">here</a> to view the page.</p>
</IFRAME>
</DIV>
and you can find the whole hack here

https://vborg.vbsupport.ru/showthread.php?t=204808

hope that helps
Reply With Quote
  #3  
Old 05-05-2009, 08:12 PM
dxflw dxflw is offline
 
Join Date: May 2008
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes but i want to see a ustom image front.
I.E. if the webiste from the iframe is loaded then i want to have a image to the top of the iframe to hide something from the site.
Reply With Quote
  #4  
Old 05-05-2009, 08:15 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dxflw View Post
Yes but i want to see a ustom image front.
I.E. if the webiste from the iframe is loaded then i want to have a image to the top of the iframe to hide something from the site.
What you want is an image to sit ontop of the Iframe at x pixels by x pixels to hide some content of the iframe site??? Like a censor or unregistered members??

You could, I suppose, absolutely position a DIV Layer over the top of the iframe.

Code:
<div style="background: #000000; position:absolute; left: 0px; top: 0px; width:100%; height:20%;"></div>
That stretches all the way along the page, and the height is 20% of the page. You should get the height of the iframe from the source code and use that as the height of the DIV Layer.
Reply With Quote
  #5  
Old 05-05-2009, 08:22 PM
dxflw dxflw is offline
 
Join Date: May 2008
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look at the image and i think you will understand what i mean:

Attached Images
File Type: jpg IFRAME.jpg (10.6 KB, 0 views)
Reply With Quote
  #6  
Old 05-05-2009, 08:34 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks buddy

Instead of having a bar across the width of the iframe you could change the background color for an image

so the code would be like this

Code:
<div style="background: #000000; position:absolute; left: 0px; top: 0px; width:100%; height:20%;"></div>
find this

Code:
"background: #000000;
and change the hex color #000000 for an image

i.e.

Code:
"background: Image.gif;
The only thing you'll need to do is to make sure the image is as wide as the i frame and as high as you need it, theres nothing worst than a stretched image appearing distorted.

Good luck
Reply With Quote
  #7  
Old 05-05-2009, 08:41 PM
dxflw dxflw is offline
 
Join Date: May 2008
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are welcome UKBusinessLive , but this will be out of the iframe..
I want to have the image inside in the iframe ike in the previous image i explane..
Is that possible?
Reply With Quote
  #8  
Old 05-05-2009, 09:00 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dxflw View Post
You are welcome UKBusinessLive , but this will be out of the iframe..
I want to have the image inside in the iframe ike in the previous image i explane..
Is that possible?
You need to adjust the pixcel positions and the height and width of the image too

Code:
absolute; left: 0px; top: 0px; width:100%; height:20%
That should add the image where you want it within the iframe
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06138 seconds
  • Memory Usage 2,258KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete