TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 219
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 98
  • Total: 98

IFrame Poll

Started by Crip, November 29, 2010, 12:09:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Crip

I have a jquery poll in an IFrame html/javascript block , works good. :)

http://www.jpr62.com/theme/index.php
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



WillyP

Nice!... I voted for jQuery.  ;)  The double horizontal scroll bar is a little odd, though.  ???

lurkalot

Looks neat Jeff.  O0  voted Moo.

Quote from: WillyP on November 29, 2010, 12:11:44 AM
The double horizontal scroll bar is a little odd, though.  ???

Agreed, Very odd.  ???

ZarPrime

#3
The double scrollbar is in there because the code itself has scrolling set to "auto".  Setting it to "no" fixes that.  Also, the width of the iframe is set to 220px, which is also the width of the panel.  I had to set the panel width to 235px with no frame to display it on my test site without either scrollbar --> http://talesofthehavenexpanse.com/smf2test/index.php

The height was set to 500px as well for the iframe so I changed that to 250px.  Displays good this way.

ZarPrime

Crip

thanks Zar -- i will use those settings ..

i tried 1st [php code] block with the include ( ); gave error tho ..\/[/php]
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



ZarPrime

Hi Jeff,

No reason to use an include in a php block for the iframe.  If you want to use it in an iframe, try something like this ...


echo '<center><iframe CODE></iframe></center>';


for instance, the code for that Carve a pumpkin php article is ...


echo '<center><iframe frameborder=0 scrolling=no width=1000 height=750 src="http://www.theoworlds.com/halloween/" align=top></iframe></center>';


Of course, the center tags might not be necessary.

ZarPrime

Crip

i will try that ZarPrime. :)
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



This website is proudly hosted on Crocweb Cloud Website Hosting.