-
AuthorPosts
-
minas69 Friend
minas69
- Join date:
- September 2007
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 99
- Thanks:
- 73
- Thanked:
- 6 times in 1 posts
March 1, 2010 at 12:35 pm #149105Hi all,
I want to place a video in the header slideshow position inside the Desk. Thought if there is a new modul position I can manage by myself ….
So how I can create a new position in this area !?
or is there is another solution to place a video… !?
Thanks for your comments and interest to help….
mina:)
( saw another thread with the same question but I can´t understand this kind of solution ) –
minas69 Friendminas69
- Join date:
- September 2007
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 99
- Thanks:
- 73
- Thanked:
- 6 times in 1 posts
March 1, 2010 at 12:37 pm #334218but I want to keep the text rotation beside the Desk,,,, but instead a photo slideshow a video preview …:)
histeriks Friendhisteriks
- Join date:
- December 2009
- Posts:
- 285
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 16
- Thanked:
- 114 times in 87 posts
March 1, 2010 at 1:05 pm #334219minas69;166938Hi all,
I want to place a video in the header slideshow position inside the Desk. Thought if there is a new modul position I can manage by myself ….
So how I can create a new position in this area !?
or is there is another solution to place a video… !?
Thanks for your comments and interest to help….
mina:)
( saw another thread with the same question but I can´t understand this kind of solution ) –
Hi Mina,
i know this ain’t what you’re looking for, but it might be useful if someone else just wants to play the video inside that monitor image, and doesn’t want to touch the slideshow module, since it’s needed on other pages.
Unpublish the slideshow module or assign it to some other menu item, and then create a new module on top position, and paste this code in it’s html (make sure your editor doesn’t strip out the codes):
<div style="width: 940px; height: 298px;">
<div style="float: right; width: 298px; height: 291px; right: 0px; top: 0px; background-image: url("templates/ja_halite/images/top-mask.png"); ">
<div style="position: relative; float: right; width: 269px; height: 167px; right: 13px; top: 27px;"><object width="269" height="167"><param name="movie" value="http://www.youtube.com/v/Qttn0_E2uQo&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Qttn0_E2uQo&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="269" height="167"></embed></object>
</div>
</div>
</div>
You should just replace the video code with your own.As for the rotation of the news, this can also be accomplished with some code inside the first div (or inside a new div placed on the left side).
I’ll try to think of something 🙂
histeriks Friendhisteriks
- Join date:
- December 2009
- Posts:
- 285
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 16
- Thanked:
- 114 times in 87 posts
March 1, 2010 at 2:10 pm #334223And here’s fading news on the left side of the video, just paste this into a custom html module placed on position top:
<div style="width: 940px; height: 298px;">
<div style="position: relative; width: 550px; height: 250px; float: left; left: 10px; top:10px;">
<script type="text/javascript">/***********************************************
* Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/var delay = 5000; //set delay between message change (in miliseconds)
var maxsteps=30; // number of steps to take to change from start color to endcolor
var stepdelay=30; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(49,112,155); // start color (red, green, blue)
var endcolor=new Array(255,255,255); // end color (red, green, blue)var fcontent=new Array();
begintag='<div style="font: normal 20px Arial; padding: 5px;">'; //set opening tag, such as font declarations
fcontent[0]="<h1>10 things you must know about JA Teline III</h1><br>JA Teline III goes live now! This is JoomlArt's special August template, the very first concept under our new 1-template-per-month plan. Why can JA Teline III turn your Joomla site a to a new high? <p><a href='#'>This is where your first link should be</a></p>";fcontent[1]="<h1>JM Epidio - Magento virtual download store</h1><br>The JM Epidio, JoomlArt's 9th Magento template is now in stable version. We highly recommend this candidate for sites offering downloads/ virtual products or game-related biz in particular. <p><a href='#'>This is where your second link should be</a></p>";
closetag='</div>';
var fwidth='550px'; //set scroller width
var fheight='200px'; //set scroller heightvar fadelinks=1; //should links inside scroller content also fade like text? 0 for no, 1 for yes.
///No need to edit below this line/////////////////
var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
if (index>=fcontent.length)
index=0
if (DOM2){
document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
document.getElementById("fscroller").innerHTML=begintag+fcontent+closetag
if (fadelinks)
linkcolorchange(1);
colorfade(1, 15);
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent+closetag;
index++
}// colorfade() partially by Marcio Galli for Netscape Communications. ////////////
// Modified by Dynamicdrive.comfunction linkcolorchange(step){
var obj=document.getElementById("fscroller").getElementsByTagName("A");
if (obj.length>0){
for (i=0;i<obj.length;i++)
obj.style.color=getstepcolor(step);
}
}/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
if(step<=maxsteps) {
document.getElementById("fscroller").style.color=getstepcolor(step);
if (fadelinks)
linkcolorchange(step);
step++;
fadecounter=setTimeout("colorfade("+step+")",stepdelay);
}else{
clearTimeout(fadecounter);
document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
setTimeout("changecontent()", delay);}
}/*Rafael Raposo's new function*/
function getstepcolor(step) {
var diff
var newcolor=new Array(3);
for(var i=0;i<3;i++) {
diff = (startcolor-endcolor);
if(diff > 0) {
newcolor = startcolor-(Math.round((diff/maxsteps))*step);
} else {
newcolor = startcolor+(Math.round((Math.abs(diff)/maxsteps))*step);
}
}
return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}if (ie4||DOM2)
document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+'"></div>');if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent</script>
</div>
<div style="float: right; width: 298px; height: 291px; right: 0px; top: 0px; background-image: url("templates/ja_halite/images/top-mask.png"); ">
<div style="position: relative; float: right; width: 269px; height: 167px; right: 13px; top: 27px;"><object width="269" height="167"><param name="movie" value="http://www.youtube.com/v/Qttn0_E2uQo&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Qttn0_E2uQo&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="269" height="167"></embed></object>
</div>
</div>
</div>
It should be easy to change according to your needs.If you want to add more slides, just add:
<blockquote>fcontent[3]=”<h1>Third title</h1><br>Third text here <p><a href=’#’>Third link here</a></p>”;</blockquote>
Continue with increasing fcontent’s number (fcontent[3]=).
Hope it will work for you 🙂
1 user says Thank You to histeriks for this useful post
minas69 Friendminas69
- Join date:
- September 2007
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 99
- Thanks:
- 73
- Thanked:
- 6 times in 1 posts
March 1, 2010 at 3:07 pm #334232wow:p…
This is really much more than I expected. I´m really nervous to test your solution :cool:… I´ll give you a feedback…
many thanks and have nice day…
minahisteriks Friendhisteriks
- Join date:
- December 2009
- Posts:
- 285
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 16
- Thanked:
- 114 times in 87 posts
March 1, 2010 at 3:18 pm #334233minas69;166956wow:p…
This is really much more than I expected. I´m really nervous to test your solution :cool:… I´ll give you a feedback…
many thanks and have nice day…
minaIt was a pleasure.
Off course, you now have a lot of styling to do, but i think it’s completely manageable to make it look good, not to mention that you saved your slideshow for other pages.
Waiting for a feedback 🙂
histeriks Friendhisteriks
- Join date:
- December 2009
- Posts:
- 285
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 16
- Thanked:
- 114 times in 87 posts
March 1, 2010 at 3:44 pm #334235This is how it should look like (it looks like this on my box):
Didn’t check it on IE, Opera, Chrome, Safari etc…if it’s different on your website, please let me know so i can tweak it.minas69 Friendminas69
- Join date:
- September 2007
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 99
- Thanks:
- 73
- Thanked:
- 6 times in 1 posts
March 1, 2010 at 4:56 pm #334242Hi,
you very helpful thanks for that…
It works really great and text effect is better than the original 🙂
The only thing is that I can´t see the top mask anymore – below you can find the code :
( I changed in the past the options width and height from the background image in top position )
[PHP]<div style=”width: 940px; height: 291px;”>
<div style=”position: relative; width: 550px; height: 250px; float: left; left: 10px; top: 5px;”><script type=”text/javascript”>/***********************************************
* Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/var delay = 5000; //set delay between message change (in miliseconds)
var maxsteps=60; // number of steps to take to change from start color to endcolor
var stepdelay=30; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(255,255,255); // start color (red, green, blue)
var endcolor=new Array(63,63,62); // end color (red, green, blue)var fcontent=new Array();
begintag='<div style=”font: normal 16px Verdana; padding: 5px;”>’; //set opening tag, such as font declarations
fcontent[0]=”<h1>Zusammenführen</h1><br>Einfache Datensammlung und – Haltung von Messwerten und Maßnahmen. Online- und Offline-Datenerfassung aus beliebigen Quellen. Mappingtabellen für den vereinfachten Import. <p><a href=’#’></a></p>”;fcontent[1]=”<h1>Berechnen</h1><br>Leistungsfähige Abbildung und Pflege von Organisations-strukturen und Kennzahlen sowie intelligente Ampelermittlung und -weiterleitung. Einfache Bildung aller zentralen Erfolgs- und Zielgrößen. <p><a href=’#’></a></p>”;
fcontent[2]=”<h1>Analysieren</h1><br>Monitore zur Analyse der Kennzahlen, Aktivitäten und Messgrößen. Einfache Kontrolle aller Messgrößen, Kennzahlen und Maßnahmen. <p><a href=’#’></a></p>”;
fcontent[3]=”<h1>Berichten</h1><br>Umfangreiches automatisierbares Berichtswesen. Standardberichte und – Diagramme zur Visualisierung der Zielerreichung und Maßnahmen-durchführung der Organisationseinheiten. <p><a href=’#’></a></p>”;
closetag='</div>’;
var fwidth=’550px’; //set scroller width
var fheight=’200px’; //set scroller heightvar fadelinks=1; //should links inside scroller content also fade like text? 0 for no, 1 for yes.
///No need to edit below this line/////////////////
var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
if (index>=fcontent.length)
index=0
if (DOM2){
document.getElementById(“fscroller”).style.color=”rgb(“+startcolor[0]+”, “+startcolor[1]+”, “+startcolor[2]+”)”
document.getElementById(“fscroller”).innerHTML=begintag+fcontent+closetag
if (fadelinks)
linkcolorchange(1);
colorfade(1, 15);
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent+closetag;
index++
}// colorfade() partially by Marcio Galli for Netscape Communications. ////////////
// Modified by Dynamicdrive.comfunction linkcolorchange(step){
var obj=document.getElementById(“fscroller”).getElementsByTagName(“A”);
if (obj.length>0){
for (i=0;i<obj.length;i++)
obj.style.color=getstepcolor(step);
}
}/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
if(step<=maxsteps) {
document.getElementById(“fscroller”).style.color=getstepcolor(step);
if (fadelinks)
linkcolorchange(step);
step++;
fadecounter=setTimeout(“colorfade(“+step+”)”,stepdelay);
}else{
clearTimeout(fadecounter);
document.getElementById(“fscroller”).style.color=”rgb(“+endcolor[0]+”, “+endcolor[1]+”, “+endcolor[2]+”)”;
setTimeout(“changecontent()”, delay);}
}/*Rafael Raposo’s new function*/
function getstepcolor(step) {
var diff
var newcolor=new Array(3);
for(var i=0;i<3;i++) {
diff = (startcolor-endcolor);
if(diff > 0) {
newcolor = startcolor-(Math.round((diff/maxsteps))*step);
} else {
newcolor = startcolor+(Math.round((Math.abs(diff)/maxsteps))*step);
}
}
return (“rgb(” + newcolor[0] + “, ” + newcolor[1] + “, ” + newcolor[2] + “)”);
}if (ie4||DOM2)
document.write(‘<div id=”fscroller” style=”border:0px solid black;width:’+fwidth+’;height:’+fheight+'”></div>’);if (window.addEventListener)
window.addEventListener(“load”, changecontent, false)
else if (window.attachEvent)
window.attachEvent(“onload”, changecontent)
else if (document.getElementById)
window.onload=changecontent</script></div>
<div top-mask.png=”” images=”” ja_halite=”” templates=”” style=”float: right; width: 298px; height: 291px; right: 0px; top: 0px;”>
<div style=”position: relative; float: right; width: 269px; height: 167px; right: 13px; top: 27px;”><object height=”167″ width=”269″>
<param value=”http://www.youtube.com/v/Qttn0_E2uQo&hl=en_US&fs=1&” name=”movie” />
<param value=”true” name=”allowFullScreen” />
<param value=”always” name=”allowscriptaccess” /><embed height=”167″ width=”269″ allowfullscreen=”true” allowscriptaccess=”always” type=”application/x-shockwave-flash” src=”http://www.youtube.com/v/Qttn0_E2uQo&hl=en_US&fs=1&” /></object></div>
</div>
</div>[/PHP]Thanks for further comments
minas69 Friendminas69
- Join date:
- September 2007
- Posts:
- 260
- Downloads:
- 0
- Uploads:
- 99
- Thanks:
- 73
- Thanked:
- 6 times in 1 posts
March 1, 2010 at 5:17 pm #334243histeriks !!
I managed by myself – As I mentioned – already correct my widht and height and my editor strip out some things but now it runs and looks beautiful 😉
Best wishes…..and a big thank
mina
histeriks Friendhisteriks
- Join date:
- December 2009
- Posts:
- 285
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 16
- Thanked:
- 114 times in 87 posts
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)This topic contains 10 replies, has 2 voices, and was last updated by histeriks 14 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Video in Slideshow ( Monitor ) positioin
Viewing 10 posts - 1 through 10 (of 10 total)