הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 29-01-06, 12:34   # 11
Sagi
חבר וותיק
 
Sagi's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 34
הודעות: 1,745
שלח הודעה באמצעות ICO אל Sagi

Sagi לא מחובר  

iframe-הומצא בשביל למצוע הערכת דף....
בשביל זה תצטרך להשתמש בתמונות רקע שלא ימתחו..
  Reply With Quote
ישן 29-01-06, 12:43   # 12
Press
חבר על
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: Here There, Anywhere
גיל: 32
הודעות: 900

Press לא מחובר  

ציטוט:
נכתב במקור על ידי Sagi
iframe-הומצא בשביל למצוע הערכת דף....
בשביל זה תצטרך להשתמש בתמונות רקע שלא ימתחו..
אל תדאג לי, את זה כבר עשיתי.
__________________
Press - עידו
I'm Proud To Be Jewish, We All Should Be Proud
  Reply With Quote
ישן 29-01-06, 12:56   # 13
Sagi
חבר וותיק
 
Sagi's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 34
הודעות: 1,745
שלח הודעה באמצעות ICO אל Sagi

Sagi לא מחובר  

ציטוט:
נכתב במקור על ידי עידו דרור
אל תדאג לי, את זה כבר עשיתי.
אז למה איפרים?הקלה בתיכנות?
  Reply With Quote
ישן 29-01-06, 12:58   # 14
SITEAM
משתמש - היכל התהילה
עסק רשום [?]
 
SITEAM's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 49
הודעות: 1,191

SITEAM לא מחובר  

ציטוט:
נכתב במקור על ידי עידו דרור
שכחתי לציין, קודם כל תודה רבה אסף,
אבל אני זקוק לקוד שאינו ב-ASP.

בכל זאת תן לי בבקשה מה שתוכל.

תודה, שוב.
לא קשור ל-ASP בכלל

בבקשה:

את הקוד הזה אתה שם בעמוד שמכיל את הפריים

HTML קוד:
<script language="javascript" type="text/javascript" src="class.FrameHeightFitter.js"></script>
			<script language="javascript" type="text/javascript"> frameHeightFitter = new FrameHeightFitter(new Array('myframe1')); </script>

		  	<iframe id="myframe1" name="myframe1" scrolling="no" align="middle" src="page_name.html" width="100%" frameborder="0"></iframe></td>
ואת הקוד הזה אתה שומר בתור class.FrameHeightFitter.js

HTML קוד:
/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

function FrameHeightFitter(frameIDArr){
	var iframeids=frameIDArr;
	
	//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
	var iframehide="yes"
	
	var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
	var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
	
	this.resizeCaller = resizeCaller;
	
	function resizeCaller() {
		var dyniframe=new Array()
		for (i=0; i<iframeids.length; i++){
			if (document.getElementById) resizeIframe(iframeids[i])
			//reveal iframe for lower end browsers? (see var above):
			if ((document.all || document.getElementById) && iframehide=="no"){
				var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
				tempobj.style.display="block"
			}
		}
	}
	
	function resizeIframe(frameid){
		var currentfr=document.getElementById(frameid)
		if (currentfr && !window.opera){
			currentfr.style.display="block"
			if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
				currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; 
			else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
				currentfr.height = currentfr.Document.body.scrollHeight;
			if (currentfr.addEventListener)
				currentfr.addEventListener("load", readjustIframe, false)
			else if (currentfr.attachEvent){
				currentfr.detachEvent("onload", readjustIframe) // Bug fix line
				currentfr.attachEvent("onload", readjustIframe)
			}
		}
	}
	
	function readjustIframe(loadevt) {
		var crossevt=(window.event)? event : loadevt
		var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
		if (iframeroot) resizeIframe(iframeroot.id);
	}
	
	function loadintoIframe(iframeid, url){
		if (document.getElementById) document.getElementById(iframeid).src=url
	}
	
	if (window.addEventListener) window.addEventListener("load", resizeCaller, false);
	else if (window.attachEvent) window.attachEvent("onload", resizeCaller);
	else window.onload=resizeCaller;
	
}

//--Example: suppose you have page iframes.htm where there are 2 iframes with ids 'myframe1','myframe2'.
//--Put the following code in the head of iframes.htm page
/*
<script language="javascript" type="text/javascript" src="class.FrameHeightFitter.js"></script>
<script language="javascript" type="text/javascript"> frameHeightFitter = new FrameHeightFitter(new Array('myframe1','myframe2')); </script>
*/
//Make sure the iframe is defined:
/*
<iframe id="myframe1" src="page.html" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe> 
*/
כמובן שמדובר כאן ב-IFRAME

בהצלחה
  Reply With Quote
ישן 29-01-06, 13:17   # 15
Press
חבר על
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: Here There, Anywhere
גיל: 32
הודעות: 900

Press לא מחובר  

תודה רבה אסף,
Js.. איך לא חשבתי על זה.

אתה פשוט מלך!
שוב תודה.


ושגיא,
נניח וזה הקלה בתכנות אוקיי?
מה? זה אסור?
__________________
Press - עידו
I'm Proud To Be Jewish, We All Should Be Proud
  Reply With Quote
ישן 29-01-06, 13:38   # 16
SITEAM
משתמש - היכל התהילה
עסק רשום [?]
 
SITEAM's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 49
הודעות: 1,191

SITEAM לא מחובר  

ציטוט:
נכתב במקור על ידי עידו דרור
תודה רבה אסף,
Js.. איך לא חשבתי על זה.

אתה פשוט מלך!
שוב תודה.


ושגיא,
נניח וזה הקלה בתכנות אוקיי?
מה? זה אסור?
אין בעד מה
  Reply With Quote
ישן 29-01-06, 15:11   # 17
שקד
משתמש - היכל התהילה
 
מיני פרופיל
תאריך הצטרפות: Dec 2005
מיקום: ירושלים
גיל: 38
הודעות: 659

שקד לא מחובר  

המטרה הושגה - האשכול נעול -
התגובות כבר מתחילות לצאת מהעיקרון.
__________________
  Reply With Quote
ישן 29-01-06, 15:28   # 18
SITEAM
משתמש - היכל התהילה
עסק רשום [?]
 
SITEAM's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 49
הודעות: 1,191

SITEAM לא מחובר  

ציטוט:
נכתב במקור על ידי שקד
המטרה הושגה - האשכול נעול -
התגובות כבר מתחילות לצאת מהעיקרון.
חבל רק ששכחת לנעול... :qqb007:
  Reply With Quote
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
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 מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 21:01.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ