Hi,

I would like to know how to add video only in first page or main page.

I have one code for put video but this appear in all pages. How to add video in main page?

 

See my web, is the video in up....

http://ucraniaonline.com/

 

 

Thanks, gracias in advance

 

Views: 78

Reply to This

Replies to This Discussion

textbox... ?

No cause text box add video in this part of the web but i need video in one special position of the web!

Now i have video with scrypt, you can see in my web www.ucraniaonline.com in the head of page. But i need that only its seeing in the main page and no in all pages of them.

How to do?

Hi Igoravance,

Add this class to display on main page only.

.xg_widget_main

Hi Bernard and thanks for answer...

I have this two codes

css code:

#video {
position: absolute;
width: 210px;
height: 35px;
margin-left: 395px;
margin-top: -95px;
}

 

and scrypt code

<script type="text/javascript"> x$(document).ready(function() { x$("div#xg_masthead").append('<div id="video"><iframe width="210" height="120" src="http://www.youtube.com/embed/uF373Iynpsc" frameborder="0" allowfullscreen></iframe></div>');

});   </script>

Where i need put the code? thanks in advance

Then use this code in custom code 

<script type="text/javascript">
if(x$('.xg_widget_main ').length > 0){
x$("#xg_masthead").append('<div id="video"><iframe width="210" height="120" src="http://www.youtube.com/embed/uF373Iynpsc" frameborder="0" allowfullscreen></iframe></div>');
}
</script>

<style>
#video {
position: absolute;
width: 210px;
height: 35px;
margin-left: 395px;
margin-top: -95px;
}
</style>

OHHHHH YESSSSSSSSSSSSSSS I LOVE YOU MAN, REALLY IM YOUR FAN, SO MUCH THANKSSSSSSSSSSSSSSSS

Thanks igoravance. Glad it worked for you.

Have a great time.

dang i just used it to put slideshow on the Main that boy Bernard knows his cup of Java... !

RSS

Latest Activity

Kos replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"No problemo. Most people actually have a life (except 4 me *lol*)  The problem seems…"
2 minutes ago
Elshara Silverheart replied to Tim's discussion 'Ning Slow Today?'
"Me two. I swear they create the status on status.ning.com before the error happens. Just kidding,…"
32 minutes ago
Elshara Silverheart replied to Jelena's discussion 'The new Spammers 3.0' in the group The Sandbox
"Anyone get a page not found error when trying to access their home page?"
1 hour ago
Tim replied to Tim's discussion 'Ning Slow Today?'
"500: Unexpected Error"
1 hour ago

NC for Hire
SweetPotato replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"Sorry, coming to this issue late on. Is it all ok now? It could have been Ning server issues as the…"
3 hours ago
LeyCosmica.org replied to LeyCosmica.org's discussion 'I can not access my site in any way'
"You can always access, everyone can access the site, even I can if I use internet connection…"
4 hours ago
Denis replied to PeruCool's discussion 'Alternatives to Ning social network'
"Great site man. Thanks for sharing the link. I am working on mine. I hope I will be done by the end…"
7 hours ago
Perrie Halpern replied to PeruCool's discussion 'Alternatives to Ning social network'
"Is there a specific code generator you use? I hope you don't mind me asking."
8 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service