Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 15:55

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



iFrame PHP Javascript problem HELP!

Discussion on iFrame PHP Javascript problem HELP! within the Web Development forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 45
Received Thanks: 2
Exclamation iFrame PHP Javascript problem HELP!

Hallo Leutz,

Seit ein paar Tagen beschäftigt mich eine wichtige Sache.
Unzwar habe ich in einer Wordpress Seite einen iFrame eingebungen.

Die eingebundene Seite ist ebenfalls von mir und ist ein Kontaktforumular.
Wenn nun ein Desktop PC mit einer Bildschirmbreite >= 800px die Webseite besucht bleibt der auf der Hauptseite des iFrames.

Geht nun ein Handy auf die Seite mit einer Bildschirmbreite < 800px dann leitet das iFrame weiter und es kommt ein längliches Kontaktformular

Wenn man mit dem Handy die Webseite besucht ist alles Top. Doch wenn man auf Desktop drauf geht dann nutzt das Kontaktforumlar die nötigen 600px und den rest lässt Sie weiße luft frei.(siehe Bild)



Nun wollte ich das mit einer Kombination aus PHP und Javascript lösen, doch es geht nicht! Ich bitte um Hilfe!

Der Aktuell nicht funktionierende Code:
Code:
<script type="text/javascript">
  if (screen.width <= 800) {
    <?php $boolische = 1; ?>
  }
  else
  {
	  <?php $boolische = 2; ?>
  }
</script>
<?php 
	if( $boolische == 1)
	{
		$height = "1350px";
	}
	else
	{
		$height = "800px"
	}
?>	
<iframe src="jhttp://meinewebseite.de" width="800px" height="<?php echo $height ?>" scrolling="no">
</iframe>
hamzatun is offline  
Old 08/12/2015, 18:37   #2
 
const*'s Avatar
 
elite*gold: 0
Join Date: Mar 2015
Posts: 776
Received Thanks: 313
Du bist hier in der falschen Sektion. Habe den Post gemeldet, damit ihn jemand verschiebt.

Grüße
const* is offline  
Old 08/12/2015, 18:49   #3
 
elite*gold: 0
Join Date: Feb 2010
Posts: 45
Received Thanks: 2
Wohin soll ich Ihn rein schieben????
hamzatun is offline  
Old 08/12/2015, 18:51   #4

 
elite*gold: 4
The Black Market: 377/0/0
Join Date: Sep 2014
Posts: 5,741
Received Thanks: 2,553
Quote:
Originally Posted by hamzatun View Post
Wohin soll ich Ihn rein schieben????
Das übernimmt ein Moderator, du brauchst nichts weiter machen.
xelayz' is offline  
Closed Thread

Tags
iframe, javascipt, php, programmieren


Similar Threads Similar Threads
Javascript iframe anvisieren
10/04/2014 - Web Development - 4 Replies
Hi, im Forum hab ich einen WYSIWYG-Editor. Durch die Änderung (onChange) eines <select> Elementes soll der Inhalt vom Editor geändert werden. Kriege es aber irgendwie nicht hin.. hab dem Iframe ne ID verpasst etc. aber will sich nix tun. Wie kriege ich es hin, den INhalt zu verändert? http://i.imgur.com/O5SYm2X.png Lg Wr3
[HELP] Problem mit IFRAME
01/23/2013 - Web Development - 0 Replies
----
javascript problem
04/02/2012 - Web Development - 2 Replies
Hat sich erledigt, danke Pseudo!
Coding and IFrame Problem
06/27/2010 - General Coding - 0 Replies
I need some help with some coding for my webpage. I am trying to take the scrolling advertisement bar from the following webpage Blue Chrome - Home and add it into my webpage. http://i13.photobucket.com/albums/a268/JuliasMark ov/problem.jpg my webpage is using iframes so i guess my main question is can anyone help me achieve what i want by either looking at my webpage and coding it for me, or just code it for me and show me where it needs to go. Full credit will be given of course....
iframe problem
06/26/2010 - General Coding - 3 Replies
Ich hab mir gestern mal mit Photoshop eine Homepage erstellt, ich weis, ist nicht perfekt war auch so ziehmlich das erste mal. Nun wollte ich zum ueben das ganze natürlich auch noch coden. Nur habe ich das Problem, sofern es ein Problem ist das ich mit "iframe" arbeite. Da der content Bereich nunmal ein Bild ist. http://img683.imageshack.us/img683/5049/unbenannt gn.jpg Nur habe ich den ganzen Bereich dann umrahmt und das sieht nicht wirklich gut aus. Gibt es da noch andere...



All times are GMT +2. The time now is 15:55.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.