| Главная | Форум | Файлы | Статьи | Игровые новости | Новости Кино | Топ сайтов | Ucoz скрипты | Online Фильмы и Сериалы | Первый игровой телеканал | Фильмы(2011) |
>
| Главная | Мой профиль | Вход | RSS |

  • Страница 1 из 1
  • 1
Форум » ๑۩۩๑ Все для Ucoz ๑۩۩๑ » Реклама » Реклама между новостями (Java) для Ucoz
Реклама между новостями (Java) для Ucoz
☠Вагид☠™Дата: Среда, 03.08.2011, 19:27 | Сообщение # 1
Создатель
Сообщений: 227
Награды: 4
Репутация: 10000
Статус: Offline
Я из : Эстония


И снова хочу предложить Вам решение размещения рекламы между новостями для сайтов на Ucoz. Делал для себя и решил поделиться...Может кому пригодится.
Начну с того что уже давно был предложен способ размещения рекламы между новостями для Ucoz с помощью условных операторов,такого типа:

Code
<?IF($ID$%3=2)?>Здесь реклама<?endif?>


Но сразу же замечу что данный способ не совсем хорош для вывода рекламы хотя бы тем ,что он предусматривает вывод рекламы после материала с заданным условием зависящим от ID материала,т.е. реклама будет выводиться некорректно заданному условию в разделах сайта и если какие либо материалы удалены,а корректно она будет выводиться только в полном архиве и при условии что ни один материал с сайта не удален (вобщем кто вкурсе - поймет о чем я...).

Поэтому предлагаю решение на яве...
Дам простое решение вывода рекламы после пятой новости (обычно колличество материалов на странице равно десяти,поэтому реклама будет посредине...кому нужно по-другому ,подкоррекрируйте условие в скрипте),как на моем сайте. В отличие от существующего решения,реклама стабильно будет размещаться на заданном месте.

Итак первое что нужно сделать,поставить этот код в вид материалов в самый низ

Code
<div class="banermesto"></div>


Следующий код поставьте в шаблон страницы архива материалов перед закрывающим body

Code
<script type="text/javascript">   
   var elems = document.getElementsByTagName("*");   
   for (var i = 0, j = 0; i < elems.length; i++) {   
   if (elems[i].className == "banermesto") {   
   if (++j / 5==1) {   
   var div = document.createElement("DIV");   
   div.className = "foo";   
   div.innerHTML = "реклама";   
   elems[i].parentNode.insertBefore(div,elems[i].nextSibling);   
   }   
   }   
   }   
   </script>


где,"реклама" - это и есть место для кода Вашей рекламы.
О способах вставки различных кодов в виде скриптов рассказывать не буду,это должно быть всем известно.

Источник/Автор: romale80.ucoz.ru



 
HielobimbenceДата: Суббота, 24.12.2011, 02:17 | Сообщение # 2
Я из :




хорошее начало
 
MaryTenderLOSДата: Четверг, 05.01.2012, 11:10 | Сообщение # 3
Я из :




They are messy and need all their toys scattered on the floor. This is not the case with. A very nice way for a little one to have a kitty.
 
MichaelbugДата: Среда, 21.12.2022, 10:44 | Сообщение # 4
Я из :




<b>four hands massage : <a href=https://massagecupertino.cyou/>massage nyc</a> massage service</b>
Nightshades for several months. As a result, the interviewee starts talking because they figure there's something wrong with the answer they have just given. Some interviews have been painful and disastrous. These can help him or her determine if you have a kidney problem. It can also help you in court should that situation arise. Women who wear tight tops that accentuate their cleavage to a job interview can kiss the job goodbye, according to a survey. A job interview is not a casual conversation between friends in bar. Conversely, don't ramble, even when there's a pause in the conversation. Even if your interviewer swears, don't get comfortable and swear, too. Rubbing your nose, even if it itches, could mean you're dishonest. If the interviewer gives you the silent treatment after you answered a question, shut your pie hole and show confidence in your previous answer. Just give enough detail to answer the question.
We adamantly refused the idea at first but Jonas was the one that convinced us it was right. Add eliminated foods back into your diet, one at a time, every four days. Others believe that foods from the nightshade family, such as tomatoes, potatoes, and peppers, aggravate their condition, although others don't notice any connection. If you think certain foods play a role in your arthritis symptoms, it is important to put them to the test. Ample amounts of tissue-building minerals in your daily diet will keep bones healthy and may help prevent bone spurs, a common complication of arthritis. This painful and debilitating joint disease is usually either classified as osteoarthritis (OA) or rheumatoid arthritis (RA). Horsetail's cornucopia of minerals, including silicon, may nourish joint cartilage. For a more contemporary twist on Halloween, give a nod to NASCAR and continue to the next page to outfit your little Dale or Danica in full racing style -- including a customized car to trick-or-treat in! Daily Mail. "How a little too much cleavage can cost you a job interview." Sept. It took 5 months to build at a cost of $1 million and is equipped with waterfalls, fountains and a 15-foot (4.5-meter) waterslide.
Dandruff while bringing out the natural oils in the dog's fur. Move out of his space. It is important to get the maximum out of each massage session that you get. The CBD used in our massage is sourced from Colorado, Organic and THC free. Undercover officers offered masseuses money in exchange for sexual acts at a West 103rd Street massage parlor. Instead, it is a highly formal exchange where profanity is verboten. U.S. News. World Report. S. News. World Report. To borrow from John Lennon, you may say I’m a dreamer, but I’m not the only one, and I write for the dreamers of the world. In some instances, however, heat may aggravate a joint that's already "hot" from inflammation, as is sometimes the case with rheumatoid arthritis. What most people don't realize, however, is that there are natural herbal remedies that help relieve the pain of arthritis associated with getting older. A deficiency of essential mineralsmay be one of the causes of arthritis. What was one drop rule?
Some employers want to get the basics out of the way quickly. You might also want to consult your physician before undergoing reflexology. They don't want to waste anyone's time. People will tell you that you are wasting your time. The job interview is your time to shine. Try to use appropriate terminology in the interview. Although coconut oil is recommended by some people for ringworm, the treatment you use will depend on its location on your body and how serious it is, per the CDC. Reducing muscle tension will result to both physical and mental relaxation because it reduces the negative health effects of chronic stress, enabling the body to heal and relax. This treatment improves posture, relaxation, and releases muscle tension and stress. This gives you a variety of treatment options at the touch of a button. Asking about perks in the wrong way could prove disastrous. Don't clam up. Everyone has varying degrees of shyness, but you need to talk about your employment experiences concisely and in an interesting way. The key is to learn from both experiences.
 
StephenlokДата: Четверг, 22.02.2024, 17:42 | Сообщение # 5
Я из :




https://mir.autotema.org.ua/sumka-velosipedna-nezaminnij-aksesuar-dlya-komfortu-ta-zruchnosti/
 
Форум » ๑۩۩๑ Все для Ucoz ๑۩۩๑ » Реклама » Реклама между новостями (Java) для Ucoz
  • Страница 1 из 1
  • 1
Поиск:
Новый ответ
Имя:
Текст сообщения:
Код безопасности:

Русский автосерфинг

myxlam.clan.su © 2017Пользовательское соглашение Для правообладателей Хостинг от uCoz

Сайт тестировался на просмотр следующих браузеров: Internet Explorer 6-8 , Mozilla Firefox 2-3 , Opera 8-10 и Google Chrome.Все права защищены, myxlam.clan.su 2010-2017 © Все файлы расположенные на данном ресурсе были взяты из открытых источников. Любая информация представленная здесь, используется в ознакомительных целях. Ни администрация сайта, ни хостинг-провайдер, ни любые другие лица не могут нести отвественности за использование материалов данного сайта. Входя на сайт вы автоматически соглашаетесь с данными условиями.

free counters Хостинг от uCoz